lint
Some checks failed
PR tests / build-image (pull_request) Successful in 2m44s
PR tests / smoke-tests (pull_request) Successful in 34s
/ build (pull_request) Failing after 42s

This commit is contained in:
2025-11-25 10:52:59 +01:00
parent 22813bab65
commit e0988cf23b

View File

@@ -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,