coinbase / coinbase-wallet-sdk

An open protocol that lets users connect their mobile wallets to your DApp

Home Page:https://coinbase.github.io/coinbase-wallet-sdk/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bug: Incompatible with Strict CSP style-src

dannyDNS opened this issue · comments

Describe the bug

The SDK doesn't work without 'unsafe-inline' style-src in CSP

Steps

Set a CSP without 'unsafe-inline' style-src and try to use the SDK.

Expected behavior

The SDK works without 'unsafe-inline' styles.

Version

No response

Additional info

No response

Desktop

No response

Smartphone

No response

Also if you're using the "Cross-Origin-Opener-Policy" header with "same-origin" you need to change to:
'Cross-Origin-Opener-Policy': 'same-origin-allow-popups',

please try sdk 4.0