fix: add referrerPolicy to the iframe
Description
This fixes the problem of iframe not connecting to https://secure.walletconnect.org/sdk?projectId=xxxx due to missing referrer
(this issue was not present with 5.1.1 somehow)
Type of change
- [x] Bug fix (non-breaking change which fixes an issue)
Checklist
- [x] Code in this PR is covered by automated tests (Unit tests, E2E tests)
- [x] My changes generate no new warnings
- [x] I have reviewed my own code
- [x] I have filled out all required sections
@jd1378 is attempting to deploy a commit to the WalletConnect Team on Vercel.
A member of the Team first needs to authorize it.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
| Name | Status | Preview | Updated (UTC) |
|---|---|---|---|
| web3modal-gallery | ✅ Ready (Inspect) | Visit Preview | Sep 5, 2024 0:25am |
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referrer-Policy#strict-origin-when-cross-origin_2 Closing as this is the default value 🙏
@jd1378 is this still happening in latest versions?
default is not same as explicitly setting it I am still patching this in latest versions (without checking after the update), so I don't know if it still happens or not
it has something to do with my CSP, as far as I remember