Block /auth/:path, nothing else. (#6949)
* Block /auth/:path, nothing else. * Also add /signup
This commit is contained in:
1 parent
9cad7086d7
commit
f7445bf8a1
1 file changed
+10
-2
+10
-2
@@ -185,8 +185,16 @@ const nextConfig = {
|
|||||||
async headers() {
|
async headers() {
|
||||||
return [
|
return [
|
||||||
{
|
{
|
||||||
// prettier-ignore
|
source: "/auth/:path*",
|
||||||
source: "/:path*((?<!\/embed$)(?<!\/embed\/preview\.html$))",
|
headers: [
|
||||||
|
{
|
||||||
|
key: "X-Frame-Options",
|
||||||
|
value: "DENY",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
source: "/signup",
|
||||||
headers: [
|
headers: [
|
||||||
{
|
{
|
||||||
key: "X-Frame-Options",
|
key: "X-Frame-Options",
|
||||||
|
|||||||
Reference in new issue
Block a user