This commit is contained in:
Oliver Kieselbach
2026-03-28 09:16:27 +01:00
parent d0a79310f4
commit cefdc5e8fb
2 changed files with 8 additions and 1 deletions
@@ -1 +1 @@
663
664
@@ -90,6 +90,13 @@ public class AuthenticationMiddleware : IFunctionsWorkerMiddleware
return;
}
// CORS preflight requests are handled by the Azure Functions host — let them through
if (string.Equals(httpContext.Request.Method, "OPTIONS", StringComparison.OrdinalIgnoreCase))
{
await next(context);
return;
}
// Allow anonymous routes without JWT validation
var requestPath = httpContext.Request.Path.Value ?? string.Empty;
if (IsAnonymousRoute(requestPath))