fix: allow changes in CORS settings (#100)

Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>
This commit is contained in:
Michele Dolfi
2025-03-17 09:49:17 +01:00
committed by GitHub
parent ea090288d3
commit 422c402bab
2 changed files with 7 additions and 3 deletions

View File

@@ -122,9 +122,9 @@ def create_app(): # noqa: C901
version=version,
)
origins = ["*"]
methods = ["*"]
headers = ["*"]
origins = docling_serve_settings.cors_origins
methods = docling_serve_settings.cors_methods
headers = docling_serve_settings.cors_headers
app.add_middleware(
CORSMiddleware,