Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

add csp and content-type headers

Iniana59f37482b2f
diff --git a/studio/next.config.js b/studio/next.config.js
index 2a78210b5b7..99b4b7d2513 100644
--- a/studio/next.config.js
+++ b/studio/next.config.js
@@ -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',