Skip to content

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

Add deny headers to next config

Paul Copplestone0a05c468cfd5
diff --git a/www/next.config.js b/www/next.config.js
index fea23554d87..1fea6776b85 100644
--- a/www/next.config.js
+++ b/www/next.config.js
@@ -1,3 +1,16 @@
module.exports = {
basePath: '/new',
+ async headers() {
+ return [
+ {
+ source: '/(.*?)',
+ headers: [
+ {
+ key: 'X-Frame-Options',
+ value: 'DENY',
+ },
+ ],
+ },
+ ]
+ },
}