fix: use non-eval source maps, script-src self

This commit is contained in:
Hank Stoever
2020-10-21 09:37:40 -07:00
parent fcaed93e83
commit 995a8f4203
3 changed files with 3 additions and 3 deletions

View File

@@ -8,4 +8,4 @@
for = "/*"
[headers.values]
X-Frame-Options = "DENY"
Content-Security-Policy = "frame-src 'none';"
Content-Security-Policy = "script-src 'self'; frame-src 'none';"

View File

@@ -10,7 +10,7 @@
},
{
"key": "Content-Security-Policy",
"value": "frame-src 'none';"
"value": "script-src 'self'; frame-src 'none';"
}
]
}

View File

@@ -53,7 +53,7 @@ const hmtlProdOpts = !isDevelopment
const getSourceMap = () => {
if (extEnv === 'web') {
return nodeEnv === 'production' ? 'eval' : 'cheap-module-source-map';
return 'cheap-module-source-map';
}
return 'none';
};