Block /auth/:path, nothing else. (#6949)
* Block /auth/:path, nothing else. * Also add /signuppull/6950/head
parent
9cad7086d7
commit
f7445bf8a1
|
@ -185,8 +185,16 @@ const nextConfig = {
|
|||
async headers() {
|
||||
return [
|
||||
{
|
||||
// prettier-ignore
|
||||
source: "/:path*((?<!\/embed$)(?<!\/embed\/preview\.html$))",
|
||||
source: "/auth/:path*",
|
||||
headers: [
|
||||
{
|
||||
key: "X-Frame-Options",
|
||||
value: "DENY",
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
source: "/signup",
|
||||
headers: [
|
||||
{
|
||||
key: "X-Frame-Options",
|
||||
|
|
Loading…
Reference in New Issue