walletconnect-monorepo
walletconnect-monorepo copied to clipboard
Refused to frame error on localhost
Hello,
I'm getting the following error when dev in localhost, i didn't had such issue before.
Refused to frame 'https://verify.walletconnect.org/' because an ancestor violates the following Content Security Policy directive: "frame-ancestors https://*.blockai.dev https://blockai.dev".
or
{context: 'core'} {context: 'core/relayer'} Error: WebSocket connection closed abnormally with code: 3000 (Unauthorized: origin not allowed)
My understanding was that localhost is automatically whitelisted but it seem not, could it be because i use subdomains like this: http://tgp.localhost:6230
I tried to add it to Origin allow list on the cloud as http://tgp.localhost:6230 or http://*.localhost:6230 but still have this error, online it works.
Using following libs versions in vue3:
"@walletconnect/client": "^1.8.0",
"@walletconnect/ethereum-provider": "^2.11.2",
"@walletconnect/modal": "^2.6.2",
"@walletconnect/web3-provider": "^1.8.0",
+1, also seeing this issue. I'm not using subdomains, just localhost:3000
Hey, thanks for reporting this issue. We will add a dev mode option on https://cloud.walletconnect.com to let you use Verify API locally. We will let you know as soon as it's implemented.
Cool! Can't wait for it!
How to fix it at least for now?
I also have
Refused to frame 'https://verify.walletconnect.org/' because an ancestor violates the following Content Security Policy directive: "frame-ancestors https://*.my.app https://my.app".
any update on this
Duplicate of https://github.com/WalletConnect/walletconnect-monorepo/issues/4277