From e0988cf23bf6ed0423f8e69a14c246dee20e98e3 Mon Sep 17 00:00:00 2001 From: WorldTeacher Date: Tue, 25 Nov 2025 10:52:59 +0100 Subject: [PATCH] lint --- api_service.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/api_service.py b/api_service.py index 6142951..319ab83 100644 --- a/api_service.py +++ b/api_service.py @@ -10,8 +10,6 @@ from fastapi import FastAPI, Query from fastapi.middleware.cors import CORSMiddleware from fastapi.responses import JSONResponse - - app = FastAPI(title="Signature Validation API") # Optional path prefix support: when behind a reverse-proxy that uses a @@ -35,6 +33,7 @@ async def _strip_api_prefix(request, call_next): request.scope["root_path"] = api_prefix return await call_next(request) + # Allow PHP application to call this API app.add_middleware( CORSMiddleware,