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:
parent
b5406cfe25
commit
52f4bee990
34
apps/blueprints/next.config.js
vendored
34
apps/blueprints/next.config.js
vendored
@ -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",
|
||||
},
|
||||
],
|
||||
},
|
||||
];
|
||||
},
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user