allow_origin_regex changed localhost string to regex request

This commit is contained in:
2025-05-09 14:17:04 +02:00
parent cb69587afb
commit a6b8347f16
+1 -1
View File
@@ -22,7 +22,7 @@ app.add_middleware(
allow_origins_regex=[ allow_origins_regex=[
"^https://[a-zA-Z0-9.-]+\\.kanzleiapp\\.io$", "^https://[a-zA-Z0-9.-]+\\.kanzleiapp\\.io$",
"^https://[a-zA-Z0-9.-]+\\.masasana\\.ai$", "^https://[a-zA-Z0-9.-]+\\.masasana\\.ai$",
"http://localhost:4200" #added a common localhost dev server "^http://localhost:4200$"
], ],
allow_credentials=True, allow_credentials=True,
allow_methods=["*"], allow_methods=["*"],