mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-16 06:07:21 +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: {
|
contentSecurityPolicy: {
|
||||||
directives: {
|
directives: {
|
||||||
defaultSrc: [
|
defaultSrc: [
|
||||||
|
'\'unsafe-eval\'',
|
||||||
'*.amazonaws.com',
|
'*.amazonaws.com',
|
||||||
'*.habitica.com',
|
'*.habitica.com',
|
||||||
'cloudfront.loggly.com',
|
'cloudfront.loggly.com',
|
||||||
@@ -77,9 +78,6 @@ export default function attachMiddlewares (app, server) {
|
|||||||
'static-na.payments-amazon.com',
|
'static-na.payments-amazon.com',
|
||||||
],
|
],
|
||||||
imgSrc: '*',
|
imgSrc: '*',
|
||||||
scriptSrc: [
|
|
||||||
'\'unsafe-eval\'',
|
|
||||||
],
|
|
||||||
upgradeInsecureRequests: IS_PROD ? [] : null,
|
upgradeInsecureRequests: IS_PROD ? [] : null,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user