fix: Sentry CSP

This commit is contained in:
Tom Moor
2020-02-16 23:45:00 -08:00
parent c15cbd06a4
commit 41fb2826b3

View File

@ -124,7 +124,7 @@ app.use(
"'unsafe-eval'", "'unsafe-eval'",
'gist.github.com', 'gist.github.com',
'www.google-analytics.com', 'www.google-analytics.com',
'd2wy8f7a9ursnm.cloudfront.net', 'browser.sentry-cdn.com',
], ],
styleSrc: ["'self'", "'unsafe-inline'", 'github.githubassets.com'], styleSrc: ["'self'", "'unsafe-inline'", 'github.githubassets.com'],
imgSrc: ['*', 'data:', 'blob:'], imgSrc: ['*', 'data:', 'blob:'],
@ -133,6 +133,7 @@ app.use(
"'self'", "'self'",
process.env.AWS_S3_UPLOAD_BUCKET_URL.replace('s3:', 'localhost:'), process.env.AWS_S3_UPLOAD_BUCKET_URL.replace('s3:', 'localhost:'),
'www.google-analytics.com', 'www.google-analytics.com',
'sentry.io',
]), ]),
}, },
}) })