Add new frontend - fix 15

This commit is contained in:
Urtzi Alfaro
2025-07-22 23:01:34 +02:00
parent 09f33519d9
commit e6b0be0c95
4 changed files with 29 additions and 12 deletions

View File

@@ -54,6 +54,10 @@ class AuthMiddleware(BaseHTTPMiddleware):
async def dispatch(self, request: Request, call_next) -> Response:
"""Process request with enhanced authentication"""
# Skip authentication for OPTIONS requests (CORS preflight)
if request.method == "OPTIONS":
return await call_next(request)
# Skip authentication for public routes
if self._is_public_route(request.url.path):
return await call_next(request)