This guide shows you how to let the SDK work under a Content Security Policy. Skip it if your app doesn’t send a Content-Security-Policy header or meta tag.
-
Add these sources to the matching directives in your existing policy:
Directive Add Why frame-srchttps://embedded-wallet.mydoge.comThe embedded wallet runs in a frame connect-srchttps://relay.mydoge.comhttps://wallet.mydoge.comhttps://web3-assets.mydoge.comSign-in, wallet data and chain data form-actionhttps://relay.mydoge.comhttps://accounts.google.comhttps://x.comhttps://twitter.comSign-in posts a form that redirects to Google or X img-srchttps://web3-assets.mydoge.comdata:Wallet and chain icons style-src'unsafe-inline'The SDK adds its styles in a <style>tag -
If you enable WalletConnect, also add:
Directive Add connect-srcwss://relay.walletconnect.orghttps://rpc.walletconnect.orghttps://pulse.walletconnect.orgframe-srchttps://verify.walletconnect.orghttps://verify.walletconnect.com -
Keep the sources your app already needs, such as your chain’s RPC endpoint. These directives cover only the SDK; they aren’t a complete policy for your app.
-
Open the wallet modal and sign in with email, then with Google and with X. If something is blocked, the browser console names the directive and the source to add.