security: add CSP and HSTS headers to vercel.json

This commit is contained in:
posimai 2026-04-20 17:10:32 +09:00
parent 2570c36b9e
commit 3deee5a195
1 changed files with 8 additions and 0 deletions

View File

@ -27,6 +27,14 @@
{ {
"key": "Referrer-Policy", "key": "Referrer-Policy",
"value": "strict-origin-when-cross-origin" "value": "strict-origin-when-cross-origin"
},
{
"key": "Content-Security-Policy",
"value": "default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval' https://unpkg.com https://cdn.jsdelivr.net https://esm.sh; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com https://fonts.gstatic.com; font-src 'self' data: https://fonts.gstatic.com; img-src 'self' data: https:; media-src 'self' https:; connect-src 'self' https://api.soar-enrich.com wss://api.soar-enrich.com https:; worker-src 'self'; frame-ancestors 'none';"
},
{
"key": "Strict-Transport-Security",
"value": "max-age=31536000; includeSubDomains"
} }
] ]
} }