allow any ugavel.com for CORS

dev
Kyle Johnsen 2023-06-30 14:57:06 -04:00
parent adb13c9305
commit b77b012542
1 changed files with 1 additions and 0 deletions

View File

@ -28,6 +28,7 @@ app.add_middleware(
allow_credentials=True,
allow_methods=["*"],
allow_headers=["*"],
allow_origins_regex="https://.*\.ugavel.com"
)
app.mount("/static", StaticFiles(directory="static"), name="static")