🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.
TypeScript analyticsautogenevaluationlangchainlarge-language-modelsllama-indexllmllm-evaluationllm-observabilityllmopsmonitoringobservabilityopen-sourceopenaiplaygroundprompt-engineeringprompt-managementself-hostedycombinator
chore: ignore HEAD request for auth api endpoints (#6899)
Marc Klingendbe71249e76b
diff --git a/web/src/pages/api/auth/[...nextauth].ts b/web/src/pages/api/auth/[...nextauth].tsindex 6f70a46bde..8a62ed0ae8 100644--- a/web/src/pages/api/auth/[...nextauth].ts+++ b/web/src/pages/api/auth/[...nextauth].ts@@ -3,6 +3,11 @@ import type { NextApiRequest, NextApiResponse } from "next";import NextAuth from "next-auth";export default async function auth(req: NextApiRequest, res: NextApiResponse) {+ // Workaround for corporate email link checkers (e.g., Outlook SafeLink)+ // https://next-auth.js.org/tutorials/avoid-corporate-link-checking-email-provider+ if (req.method === "HEAD") {+ return res.status(200).end();+ }// Do whatever you want here, before the request is passed down to `NextAuth`const authOptions = await getAuthOptions();// https://github.com/nextauthjs/next-auth/issues/2408#issuecomment-1382629234