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

feat: added security headers

This commit is contained in:
Bart 2021-04-13 10:50:40 +02:00 committed by Bart
parent b5406cfe25
commit 52f4bee990

View File

@ -22,4 +22,38 @@ module.exports = {
return config;
},
async headers() {
return [
{
source: "/(.*)",
headers: [
{
key: "Permissions-Policy",
value: "interest-cohort=()",
},
{
key: "Referrer-Policy",
value: "no-referrer",
},
{
key: "Strict-Transport-Security",
value: "max-age=31536000; includeSubDomains",
},
{
key: "Content-Security-Policy",
value:
"script-src 'self' https://storage.googleapis.com/factorio-blueprints-assets https://static.cloudflareinsights.com ;",
},
{
key: "X-Frame-Options",
value: "SAMEORIGIN",
},
{
key: "X-Content-Type-Options",
value: "nosniff",
},
],
},
];
},
};