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

Co-authored-by: Hariom Balhara <hariombalhara@gmail.com>
This commit is contained in:
Alex van Andel
2023-02-01 11:28:47 +05:30
committed by GitHub
co-authored by Hariom Balhara
parent 17eb45b0b6
commit c42674595c
+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 = [
{