Skip to content
This repository has been archived by the owner on May 5, 2023. It is now read-only.

Commit

Permalink
fix: add workbox to csp
Browse files Browse the repository at this point in the history
Signed-off-by: Logan McAnsh <[email protected]>
  • Loading branch information
mcansh committed Aug 13, 2019
1 parent 628bd9c commit 27f928f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions components/csp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,14 @@ const CSP = (props: DocumentProps) => {
'https://polyfill.io/v3/polyfill.min.js',
'www.googletagmanager.com',
'www.google-analytics.com',
'https://storage.googleapis.com',
],
'connect-src': [
"'self'",
'ws://localhost:*',
'https://sentry.io/',
'www.google-analytics.com',
'https://res.cloudinary.com/dof0zryca',
],
'manifest-src': ["'self'"],
'style-src': ["'self'", "'unsafe-inline'"],
Expand Down
2 changes: 1 addition & 1 deletion now.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
{
"src": "(.*)",
"headers": {
"Content-Security-Policy": "default-src 'none';script-src 'self' https://polyfill.io/v3/polyfill.min.js www.googletagmanager.com www.google-analytics.com;connect-src 'self' ws://localhost:* https://sentry.io/ www.google-analytics.com;style-src 'self' 'unsafe-inline';img-src 'self' https://res.cloudinary.com/dof0zryca/ data: www.googletagmanager.com www.google-analytics.com; report-uri https://sentry.io/api/197817/security/?sentry_key=07a54d3b59bb4bf5ad1c6ddf050d51c1; manifest-src 'self'"
"Content-Security-Policy": "default-src 'none';script-src 'self' https://polyfill.io/v3/polyfill.min.js www.googletagmanager.com www.google-analytics.com https://storage.googleapis.com;connect-src 'self' ws://localhost:* https://sentry.io/ www.google-analytics.com https://res.cloudinary.com/dof0zryca;manifest-src 'self';style-src 'self' 'unsafe-inline';img-src 'self' https://res.cloudinary.com/dof0zryca/ data: www.googletagmanager.com www.google-analytics.com;report-uri https://sentry.io/api/197817/security/?sentry_key=07a54d3b59bb4bf5ad1c6ddf050d51c1"
},
"continue": true
},
Expand Down

0 comments on commit 27f928f

Please sign in to comment.