mirror of
https://github.com/supabase/supabase.git
synced 2026-10-07 02:15:05 +03:00
add csp and content-type headers
csp is pretty basic for now, will beef it up later
This commit is contained in:
1 parent
4cd86ef3cc
commit
a59f37482b
1 file changed
+13
@@ -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',
|
||||
|
||||
Reference in new issue
Block a user