fix: add admin CORS + optional header
This commit is contained in:
@@ -32,11 +32,14 @@ app.add_middleware(
|
|||||||
allow_origins=[
|
allow_origins=[
|
||||||
f"https://app.{s.DOMAIN}",
|
f"https://app.{s.DOMAIN}",
|
||||||
f"https://data.{s.DOMAIN}",
|
f"https://data.{s.DOMAIN}",
|
||||||
|
f"https://admin.{s.DOMAIN}",
|
||||||
"http://localhost:3000",
|
"http://localhost:3000",
|
||||||
|
"http://localhost:8080",
|
||||||
],
|
],
|
||||||
allow_credentials=True,
|
allow_credentials=True,
|
||||||
allow_methods=["*"],
|
allow_methods=["*"],
|
||||||
allow_headers=["*"],
|
allow_headers=["*"],
|
||||||
|
expose_headers=["*"],
|
||||||
)
|
)
|
||||||
|
|
||||||
app.include_router(auth.router)
|
app.include_router(auth.router)
|
||||||
|
|||||||
Reference in New Issue
Block a user