add cors headers in exception handler in cors

This commit is contained in:
Jörg Thalheim
2023-11-14 16:11:15 +01:00
parent 652580d57d
commit 8b42d0207a
4 changed files with 72 additions and 39 deletions

View File

@@ -11,4 +11,4 @@ from clan_cli.webui.app import app
def api() -> TestClient:
# logging.getLogger("httpx").setLevel(level=logging.WARNING)
logging.getLogger("asyncio").setLevel(logging.INFO)
return TestClient(app)
return TestClient(app, raise_server_exceptions=False)