mirror of
https://github.com/zhigang1992/connect.git
synced 2026-04-28 17:35:40 +08:00
fix: use non-eval source maps, script-src self
This commit is contained in:
@@ -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';"
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
},
|
||||
{
|
||||
"key": "Content-Security-Policy",
|
||||
"value": "frame-src 'none';"
|
||||
"value": "script-src 'self'; frame-src 'none';"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -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';
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user