From b7307caeae2f0c3e0a3578d7185b007f74af871b Mon Sep 17 00:00:00 2001 From: Benjamin Guedj Date: Mon, 11 Sep 2023 17:23:55 +0200 Subject: [PATCH] fix: X-Frame-Options SAMEORIGIN --- next.config.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/next.config.js b/next.config.js index 8fce4a4..ab7b9c4 100644 --- a/next.config.js +++ b/next.config.js @@ -7,5 +7,18 @@ module.exports = { }, ) return config + }, + async headers() { + return [ + { + source: '/(.*)?', // Matches all pages + headers: [ + { + key: 'X-Frame-Options', + value: 'SAMEORIGIN', + } + ] + } + ] } }