1
0
mirror of https://github.com/barthuijgen/factorio-sites.git synced 2025-03-04 15:51:24 +02:00

fix: update csp header to allow wasm

This commit is contained in:
Bart 2021-04-13 12:07:09 +02:00
parent 2e55711b63
commit bd3d78ce19

View File

@ -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",