From a6b8347f1641d61612e1ebf32665177550c1df24 Mon Sep 17 00:00:00 2001 From: justinbaer Date: Fri, 9 May 2025 14:17:04 +0200 Subject: [PATCH] allow_origin_regex changed localhost string to regex request --- gen/openapi_server/__main__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gen/openapi_server/__main__.py b/gen/openapi_server/__main__.py index 4c011c0..2cbf68b 100644 --- a/gen/openapi_server/__main__.py +++ b/gen/openapi_server/__main__.py @@ -22,7 +22,7 @@ app.add_middleware( allow_origins_regex=[ "^https://[a-zA-Z0-9.-]+\\.kanzleiapp\\.io$", "^https://[a-zA-Z0-9.-]+\\.masasana\\.ai$", - "http://localhost:4200" #added a common localhost dev server + "^http://localhost:4200$" ], allow_credentials=True, allow_methods=["*"],