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

@@ -32,6 +32,10 @@ class DoclingServeSettings(BaseSettings):
artifacts_path: Optional[Path] = None
options_cache_size: int = 2
cors_origins: list[str] = ["*"]
cors_methods: list[str] = ["*"]
cors_headers: list[str] = ["*"]
eng_kind: AsyncEngine = AsyncEngine.LOCAL
eng_loc_num_workers: int = 2