Add X-Frame-Options to page headers (#6784)
Co-authored-by: Hariom Balhara <hariombalhara@gmail.com>pull/6660/head
parent
17eb45b0b6
commit
c42674595c
|
@ -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 = [
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue