Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] CSP causing issues to detect Metamask extension on Firefox #2289

Open
1 task done
DorianWilhelm opened this issue Jan 13, 2025 · 1 comment
Open
1 task done

Comments

@DorianWilhelm
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

RainbowKit Version

2.2.1

wagmi Version

2.14.7

Current Behavior

Metamask extension is not being detected as installed on Firefox.
Console shows Content-Security-Policy issue for script-src-elem / script-src on inpage.js

Expected Behavior

Metamask extension is being detected as installed on Firefox.

Steps To Reproduce

  • Open Firefox
  • Install metamask browser extension
  • Opening rainbowkit and trying to connect with metamask on a page that does not allow for unsafe-inline as script-src or script-src-elem

Link to Minimal Reproducible Example (CodeSandbox, StackBlitz, etc.)

No response

Anything else?

I'm unable to find a way to provide a nonce to rainbowkit so that we don't have to allow for unsafe-inline in our CSP.

Copy link

linear bot commented Jan 13, 2025

@DorianWilhelm DorianWilhelm changed the title [bug] CSP causing issues to connect on Firefox [bug] CSP causing issues to detect Metamask extension on Firefox Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant