-
Notifications
You must be signed in to change notification settings - Fork 56
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
Inconsistency in default warning Content Security Policy
Script
#500
Comments
In CSP, In the case of the CSP you use for Turn off the lights. This means Is there any reason you are not using As a last note, having Discussion about the default CSP can be found here: #98 |
The reason why I use I try to keep my code the same across all platforms. Therefore, your suggestion |
@stefanvd for that you can simply use Is there anything specific for this group to talk about? |
@carlosjeurissen I used
Should not |
@stefanvd I would suggest to use Again is there anything specific for this group to talk about? |
These are informative warnings for developers, not fatal errors that prevent the extension from loading. In practice, due to several efforts, including #98 and #204, the CSP handling is now quite uniform. Chrome and Firefox both enforce the CSP by enforcing a minimum CSP (effectively Like Carlos mentioned before, you should have used I'm closing this issue because there are no actionable items for the WECG here. |
When converting my Chrome extension to a Firefox Extension Manifest V3 and using the same Manifest.json file, it shows me a warning that I need to add
worker-src 'self'
. While it works just fine in the Google Chrome web browser.In Firefox, I added
worker-src 'self'
inside thecontent_security_policy
code in my Manifest.json file, and the warning was removed.Screenshots of the issue
Chrome Manifest.json
Firefox Manifest.json
Conclusion:
All web browsers must establish a uniform default security standard for their Content Policy. This ensures the prevention of issues where the security of one content script differs and is more relaxed in another web browser. Setting a consistently robust security baseline is imperative for a secure web browser.
Resources:
https://github.com/turnoffthelights/Turn-Off-the-Lights-Firefox-extension-WebExtensions/blob/master/src/manifest.json
https://github.com/turnoffthelights/Turn-Off-the-Lights-Chrome-extension/blob/manifest-v3/src/manifest.json
The text was updated successfully, but these errors were encountered: