Skip to content

Commit

Permalink
Merge pull request #339 from significa/add-security-headers
Browse files Browse the repository at this point in the history
Add security headers
  • Loading branch information
tofran authored Feb 23, 2024
2 parents 76bdd39 + 0197983 commit aa80a60
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions vercel.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,33 @@
"installCommand": "npm ci --prefer-offline --no-audit --no-fund",
"buildCommand": "npm run build",
"framework": "sveltekit",
"headers": [
{
"source": "/:path*",
"headers": [
{
"key": "X-Frame-Options",
"value": "DENY"
},
{
"key": "X-Content-Type-Options",
"value": "nosniff"
},
{
"key": "Referrer-Policy",
"value": "strict-origin-when-cross-origin"
},
{
"key": "Strict-Transport-Security",
"value": "max-age=63072000; includeSubDomains; preload"
},
{
"key": "Cross-Origin-Opener-Policy",
"value": "same-origin"
}
]
}
],
"redirects": [
{
"source": "/showcase/:path",
Expand Down

0 comments on commit aa80a60

Please sign in to comment.