Block /auth/:path, nothing else. (#6949)

* Block /auth/:path, nothing else.

* Also add /signup
pull/6950/head
Alex van Andel 2023-02-08 16:27:18 +00:00 committed by GitHub
parent 9cad7086d7
commit f7445bf8a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 2 deletions

View File

@ -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",