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

Co-authored-by: Hariom Balhara <hariombalhara@gmail.com>
pull/6660/head
Alex van Andel 2023-02-01 05:58:47 +00:00 committed by GitHub
parent 17eb45b0b6
commit c42674595c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 14 additions and 0 deletions

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 = [
{