Refused to frame 'https://secure.walletconnect.org/' because an ancestor violates the following Content Security Policy directive: "frame-ancestors 'self' http://localhost:* https://*.vercel.app https://*.ngrok-free.app https://secure-mobile.walletconnect.com #5284
-
Hi, I implemented the Web3Model to connect wallet using smart wallet (X, Gmail...). It works perfectly in my localhost. However, when I deployed to the production environment, the iframe that is pops up when I click on X icon throws this error:
This comes from the GET request to In the response header of this request it set the CSP as follows: It seems this is something inside WalletConnect libs where it sets the CSP frame-ancestors values. And it is missing Any advices. Thank you very much. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I found the issue. The domain should be verified with the project ID. Then wallet connect will add my domain (for example *.example.com) to its CSP and allow the script to be loaded |
Beta Was this translation helpful? Give feedback.
I found the issue. The domain should be verified with the project ID. Then wallet connect will add my domain (for example *.example.com) to its CSP and allow the script to be loaded