This commit is contained in:
Nicolas Mowen 2025-01-30 09:12:23 -07:00
parent ee902855bf
commit 5eb691c665

View File

@ -70,9 +70,7 @@ def create_fastapi_app(
@app.middleware("http")
async def frigate_middleware(request: Request, call_next):
# Before request
csrf_passed = check_csrf(request)
if not csrf_passed:
if not check_csrf(request):
return JSONResponse(
content={"success": False, "message": "Missing CSRF header"},
status_code=401,