From cc3b55b0109ff6b84cb4f3d421bacef22190847e Mon Sep 17 00:00:00 2001 From: m5rcel { Marcel } Date: Tue, 9 Dec 2025 09:34:48 +0100 Subject: [PATCH] feat: Enhance security headers and text rendering Adds comprehensive security headers via Vercel configuration to protect against common web vulnerabilities. Improves text rendering consistency across browsers with `text-size-adjust` and font smoothing properties. --- index.html | 13 +++++++++---- vercel.json | 42 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 51 insertions(+), 4 deletions(-) create mode 100644 vercel.json diff --git a/index.html b/index.html index e3b6591..39e64aa 100644 --- a/index.html +++ b/index.html @@ -67,8 +67,13 @@ }; - diff --git a/vercel.json b/vercel.json new file mode 100644 index 0000000..83279c4 --- /dev/null +++ b/vercel.json @@ -0,0 +1,42 @@ +{ + "headers": [ + { + "source": "/(.*)", + "headers": [ + { + "key": "X-Content-Type-Options", + "value": "nosniff" + }, + { + "key": "X-Frame-Options", + "value": "DENY" + }, + { + "key": "Content-Security-Policy", + "value": "frame-ancestors 'none'" + }, + { + "key": "Strict-Transport-Security", + "value": "max-age=63072000; includeSubDomains; preload" + }, + { + "key": "X-XSS-Protection", + "value": "1; mode=block" + }, + { + "key": "Content-Type", + "value": "text/html; charset=utf-8" + } + ] + }, + { + "source": "/assets/(.*)", + "headers": [ + { + "key": "Cache-Control", + "value": "public, max-age=31536000, immutable" + } + ] + } + ] +} \ No newline at end of file