Skip to content

Commit

Permalink
add security headers
Browse files Browse the repository at this point in the history
  • Loading branch information
xvvvyz committed Jul 10, 2024
1 parent 7a30e17 commit 092fddd
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions vercel.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,44 @@
{
"framework": "nextjs",
"github": { "enabled": false },
"headers": [
{
"source": "/(.*)",
"headers": [
{
"key": "Content-Security-Policy",
"value": "default-src 'self'; script-src 'self' 'unsafe-eval' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; img-src 'self' blob: data:; font-src 'self'; object-src 'none'; base-uri 'self'; form-action 'self'; frame-ancestors 'none'; upgrade-insecure-requests;"
},
{
"key": "Permissions-Policy",
"value": "camera=(), microphone=(), geolocation=(), interest-cohort=()"
},
{
"key": "Referrer-Policy",
"value": "no-referrer-when-downgrade"
},
{
"key": "Strict-Transport-Security",
"value": "max-age=31536000; includeSubDomains"
},
{
"key": "X-Content-Type-Options",
"value": "nosniff"
},
{
"key": "X-Frame-Options",
"value": "deny"
},
{
"key": "X-Robots-Tag",
"value": "noindex"
},
{
"key": "X-XSS-Protection",
"value": "1; mode=block"
}
]
}
],
"regions": ["sfo1"]
}

0 comments on commit 092fddd

Please sign in to comment.