allow any ugavel.com for CORS
parent
adb13c9305
commit
b77b012542
|
|
@ -28,6 +28,7 @@ app.add_middleware(
|
||||||
allow_credentials=True,
|
allow_credentials=True,
|
||||||
allow_methods=["*"],
|
allow_methods=["*"],
|
||||||
allow_headers=["*"],
|
allow_headers=["*"],
|
||||||
|
allow_origins_regex="https://.*\.ugavel.com"
|
||||||
)
|
)
|
||||||
|
|
||||||
app.mount("/static", StaticFiles(directory="static"), name="static")
|
app.mount("/static", StaticFiles(directory="static"), name="static")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue