mirror of
https://github.com/hensm/fx_cast.git
synced 2026-06-09 09:09:58 +00:00
Fix default CSP
This commit is contained in:
@@ -58,7 +58,7 @@ const webpackConfig = require(`${ROOT}/webpack.config.js`)({
|
||||
|
||||
// eval source map needs special CSP
|
||||
, contentSecurityPolicy: argv.mode === "production"
|
||||
? "default-src 'self'"
|
||||
? "script-src 'self'; object-src 'self'"
|
||||
: "script-src 'self' 'unsafe-eval'; object-src 'self'"
|
||||
|
||||
// Developer info
|
||||
|
||||
Reference in New Issue
Block a user