From 7e0dbee2ca84f0d1635b54c3366faeaa6c1aabd0 Mon Sep 17 00:00:00 2001 From: zomars Date: Tue, 16 Aug 2022 16:28:19 -0600 Subject: [PATCH] DDoS rewrite fixes --- apps/web/next.config.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/apps/web/next.config.js b/apps/web/next.config.js index 7f273e055f..bb1b38a732 100644 --- a/apps/web/next.config.js +++ b/apps/web/next.config.js @@ -141,9 +141,10 @@ const nextConfig = { source: "/api/auth/:path*", has: [ { - type: "header", - key: "User-Agent", - value: "node-fetch/1.0 (+https://github.com/bitinn/node-fetch)", + type: "query", + key: "callbackUrl", + // prettier-ignore + value: "^(?!https?:\/\/).*$", }, ], destination: "/404",