walletconnect-monorepo icon indicating copy to clipboard operation
walletconnect-monorepo copied to clipboard

Refused to frame error on localhost

Open christopheSeeka opened this issue 1 year ago • 5 comments

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",

christopheSeeka avatar Feb 23 '24 12:02 christopheSeeka

+1, also seeing this issue. I'm not using subdomains, just localhost:3000

blankey1337 avatar Mar 03 '24 22:03 blankey1337

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.

Cali93 avatar Mar 05 '24 14:03 Cali93

Cool! Can't wait for it!

Apexl2 avatar May 06 '24 18:05 Apexl2

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".

rromanovsky avatar May 23 '24 16:05 rromanovsky

any update on this

sawproduction avatar Jun 19 '24 13:06 sawproduction

Duplicate of https://github.com/WalletConnect/walletconnect-monorepo/issues/4277

glitch-txs avatar Jul 06 '24 11:07 glitch-txs