Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wallet adapter opens iframe, fails due to content security policy #10

Open
RokoTechnology opened this issue Jan 10, 2024 · 0 comments
Open

Comments

@RokoTechnology
Copy link

We are using a Chrome Extension to inject our modal into websites. This includes a Swap form with a "Connect Wallet" button using solana-labs/wallet-adapter.

When connecting a standard wallet-adapter wallet (such as Phantom Wallet), things work as expected but when connecting Solflare, the solflare-sdk tries to inject an iframe and fails due to content security policy. CSP blocking fetch requests can be worked around (solana/web3.js Connection accepts custom fetch implementation) but we are not aware of such workaround for iframes.

It would be ideal if it was possible to pass a param in SolflareConfig and avoid the iframe part of the workflow altogether.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant