Skip to content

Commit

Permalink
Removed unsafe-inline from extension CSP
Browse files Browse the repository at this point in the history
  • Loading branch information
imolorhe committed Dec 8, 2023
1 parent 4c069ee commit 72d1a55
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cwex.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@ manifestOptions:
- tabs
- storage
- notifications
# this CSP has been modified to allow unsafe-inline and unsafe-eval but the CSP in the index.html remains strict. This allows the web worker to have the less strict CSP.
content_security_policy: "script-src 'self' 'sha256-765ndVO8s0mJNdlCDVQJVuWyBpugFWusu1COU8BNbI8=' 'sha256-kFTKSG2YSVB69S6DWzferO6LmwbqfHmYBTqvVbPEp4I=' 'unsafe-inline' 'unsafe-eval' https://cdn.jsdelivr.net https://apis.google.com https://www.gstatic.com/ https://*.firebaseio.com https://www.googleapis.com localhost:* http://localhost:8002 http://localhost:8080; object-src 'self';"
# this CSP has been modified to allow unsafe-eval but the CSP in the index.html remains strict. This allows the web worker to have the less strict CSP.
# Note: firefox ignores the CSP if it contains unsafe-inline
content_security_policy: "script-src 'self' 'sha256-765ndVO8s0mJNdlCDVQJVuWyBpugFWusu1COU8BNbI8=' 'sha256-kFTKSG2YSVB69S6DWzferO6LmwbqfHmYBTqvVbPEp4I=' 'unsafe-eval' https://cdn.jsdelivr.net https://apis.google.com https://www.gstatic.com/ https://*.firebaseio.com https://www.googleapis.com localhost:* http://localhost:8002 http://localhost:8080; object-src 'self';"
background:
scripts:
- js/background.js
Expand Down

0 comments on commit 72d1a55

Please sign in to comment.