bancorprotocol / webapp

Bancor Swap/Analytics webapp
https://app.bancor.network
MIT License
32 stars 45 forks source link

CSP Header blocks MetaMask on mobile #1406

Closed pingustar closed 3 years ago

pingustar commented 3 years ago

CSP HTTP Response Header

Issue: Mobile App MetaMask in-app browser blocks login due to too restrictive Content Security Policy. Likely other mobile phone wallets are blocked too.

I have removed this specific header until fixed. The other headers are still in place.

@ashachaf Any ideas who I can reach out to to get help sorting this out? Do we have a contact to Blocknative/Onboard and/or MetaMask?

Related #1344

ashachaf commented 3 years ago

i have reached out to the team we are working with.

ashachaf commented 3 years ago

@pingustar please create a preview link with the more restrictive headers so we can test the effect.

pingustar commented 3 years ago

Added it to staging as the preview links are not able to be fine-tuned like that.

https://bancor-v2-beta.web.app/