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

Firefox blocks extension w/ script-src CSP policies #1815

Open
ogonkov opened this issue Jan 10, 2025 · 0 comments
Open

Firefox blocks extension w/ script-src CSP policies #1815

ogonkov opened this issue Jan 10, 2025 · 0 comments

Comments

@ogonkov
Copy link

ogonkov commented Jan 10, 2025

In projects, with strict script-src rule, extension is failed to inject required code to window. Works in Chromium based browsers.

Fails with CSP violation error in console:

Content-Security-Policy: The page’s settings blocked an inline script (script-src-elem) from being executed because it violates the following directive: “script-src blob: <some urls> 'unsafe-eval' data: 'nonce-whp94kodcyq0oHWcdOIXsw==' <some urls>”
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