1
0
mirror of https://github.com/barthuijgen/factorio-sites.git synced 2025-03-18 21:28:02 +02:00

fix: update csp header to allow wasm

This commit is contained in:
Bart 2021-04-13 12:07:09 +02:00 committed by Bart
parent 71e1053dc5
commit 03848755c1

@ -41,8 +41,9 @@ module.exports = {
},
{
key: "Content-Security-Policy",
// 'unsafe-eval' and 'worker-src blob:' are required for wasm
value:
"script-src 'self' https://factorio-blueprints-assets.storage.googleapis.com https://static.cloudflareinsights.com ;",
"script-src 'self' 'unsafe-eval' https://factorio-blueprints-assets.storage.googleapis.com https://static.cloudflareinsights.com ; worker-src blob: ;",
},
{
key: "X-Frame-Options",