allow_origin_regex changed localhost string to regex request
This commit is contained in:
parent
cb69587afb
commit
a6b8347f16
|
|
@ -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=["*"],
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue