add csp and content-type headers

csp is pretty basic for now, will beef it up later
This commit is contained in:
Inian authored and Joshen Lim committed 2023-01-26 14:02:38 +08:00
1 parent 4cd86ef3cc
commit a59f37482b
1 file changed
+13
+13
View File
@@ -131,6 +131,19 @@ const nextConfig = {
key: 'X-Frame-Options',
value: 'DENY',
},
{
key: 'X-Content-Type-Options',
value: 'no-sniff',
},
{
key: 'Content-Security-Policy',
value: `
frame-ancestors 'none';
upgrade-insecure-requests;
`
.replace(/\s{2,}/g, ' ')
.trim(),
},
{
key: 'Referrer-Policy',
value: 'strict-origin-when-cross-origin',