Skip to content

Commit

Permalink
feat: add basic security headers
Browse files Browse the repository at this point in the history
  • Loading branch information
macrat committed Jan 26, 2024
1 parent 3a7630b commit 77ab134
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions vercel.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
{
"outputDirectory": "dist",
"trailingSlash": false,
"headers": [
{
"source": "/(.*)",
"headers": [
{"key": "X-Content-Type-Options", "value": "nosniff"},
{"key": "X-Frame-Options", "value": "deny"},
{"key": "Content-Security-Policy", "value": "default-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data: https://*.twitter.com https://*.twimg.com; script-src 'self' 'unsafe-inline' https://platform.twitter.com/ https://cdn.syndication.twimg.com/; frame-src https://platform.twitter.com/ https://syndication.twitter.com/; frame-ancestors 'none'"}
]
}
],
"redirects": [
{"source": "/about.html", "destination": "/about"},
{"source": "/blog/(20[0-9]{2})/(1[0-2]|0[0-9])/(.+)\\.html", "destination": "/blog/$1/$2/$3"},
Expand Down

0 comments on commit 77ab134

Please sign in to comment.