From a0fc8ad3bdd7ae5fa58fd5b42dc64516879544fc Mon Sep 17 00:00:00 2001 From: Thibault Le Ouay Ducasse Date: Mon, 5 Oct 2026 10:58:50 +0200 Subject: [PATCH] head return 200 --- apps/dashboard/src/app/api/auth/[...nextauth]/route.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/dashboard/src/app/api/auth/[...nextauth]/route.ts b/apps/dashboard/src/app/api/auth/[...nextauth]/route.ts index c3b5d7417..cb7e53437 100644 --- a/apps/dashboard/src/app/api/auth/[...nextauth]/route.ts +++ b/apps/dashboard/src/app/api/auth/[...nextauth]/route.ts @@ -28,7 +28,7 @@ export async function GET(req: NextRequest) { } // Mail link scanners probe magic links with HEAD. Next would route HEAD to -// GET, which consumes the token; refuse the method before Auth.js sees it. +// GET, which consumes the token; answer 200 before Auth.js sees it. export function HEAD() { - return new Response(null, { status: 405, headers: { Allow: "GET, POST" } }); + return new Response(null, { status: 200 }); } -- 2.54.0