mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-13 04:37:36 +01:00
fix(CSP): unsafe-eval in default-src
This commit is contained in:
@@ -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,
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user