From 64c9e2f64d35c5a149e42842b11d727400753166 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tr=C3=A8sAbhi?= <43380238+tresabhi@users.noreply.github.com> Date: Wed, 5 Jun 2024 13:40:45 -0500 Subject: [PATCH] fix: disallow iframs --- next.config.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/next.config.js b/next.config.js index d923618ce..2923298aa 100644 --- a/next.config.js +++ b/next.config.js @@ -14,6 +14,15 @@ const nextConfig = { }, }), + async headers() { + return [ + { + source: '/(.*)?', + headers: [{ key: 'X-Frame-Options', value: 'DENY' }], + }, + ]; + }, + distDir: 'dist/website', reactStrictMode: false, };