From 2570c36b9e0312ead0fcf79ed1817b97fc8aa212 Mon Sep 17 00:00:00 2001 From: posimai Date: Fri, 17 Apr 2026 19:01:16 +0900 Subject: [PATCH] feat(security): add vercel.json with security headers and sw.js cache control Co-Authored-By: Claude Sonnet 4.6 --- vercel.json | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 vercel.json diff --git a/vercel.json b/vercel.json new file mode 100644 index 0000000..4058d28 --- /dev/null +++ b/vercel.json @@ -0,0 +1,34 @@ +{ + "headers": [ + { + "source": "/sw.js", + "headers": [ + { + "key": "Cache-Control", + "value": "public, max-age=0, must-revalidate" + } + ] + }, + { + "source": "/(.*)", + "headers": [ + { + "key": "X-Content-Type-Options", + "value": "nosniff" + }, + { + "key": "X-Frame-Options", + "value": "DENY" + }, + { + "key": "X-XSS-Protection", + "value": "1; mode=block" + }, + { + "key": "Referrer-Policy", + "value": "strict-origin-when-cross-origin" + } + ] + } + ] +}