fix(CSP): unsafe-eval in default-src

This commit is contained in:
Kalista Payne
2025-12-12 16:56:24 -06:00
parent f51f0a0c93
commit 023d9886c8

View File

@@ -69,6 +69,7 @@ export default function attachMiddlewares (app, server) {
contentSecurityPolicy: {
directives: {
defaultSrc: [
'\'unsafe-eval\'',
'*.amazonaws.com',
'*.habitica.com',
'cloudfront.loggly.com',
@@ -77,9 +78,6 @@ export default function attachMiddlewares (app, server) {
'static-na.payments-amazon.com',
],
imgSrc: '*',
scriptSrc: [
'\'unsafe-eval\'',
],
upgradeInsecureRequests: IS_PROD ? [] : null,
},
},