Add X-Frame-Options to page headers (#6784)

Co-authored-by: Hariom Balhara <[email protected]>
This commit is contained in:
Alex van AndelandHariom Balhara authored and GitHub committed 2023-02-01 11:28:47 +05:30
1 parent 17eb45b0b6
commit c42674595c
1 file changed
+14
+14
View File
@@ -176,6 +176,20 @@ const nextConfig = {
}, */
];
},
async headers() {
return [
{
// prettier-ignore
source: "/:path*((?<!\/embed$)(?<!\/embed\/preview\.html$))",
headers: [
{
key: "X-Frame-Options",
value: "DENY",
},
],
},
];
},
async redirects() {
const redirects = [
{