fix: config,py add backend_cors_origins
Some checks failed
Deploy to Staging / deploy (push) Has been cancelled
Lint Backend / lint-backend (push) Has been cancelled
Playwright Tests / changes (push) Has been cancelled
Playwright Tests / test-playwright (1, 4) (push) Has been cancelled
Playwright Tests / test-playwright (2, 4) (push) Has been cancelled
Playwright Tests / test-playwright (3, 4) (push) Has been cancelled
Playwright Tests / test-playwright (4, 4) (push) Has been cancelled
Playwright Tests / merge-playwright-reports (push) Has been cancelled
Playwright Tests / alls-green-playwright (push) Has been cancelled
Test Backend / test-backend (push) Has been cancelled
Test Docker Compose / test-docker-compose (push) Has been cancelled

This commit is contained in:
bbh
2025-08-04 16:34:26 +08:00
parent 14f6273a00
commit 495155af1d

View File

@@ -24,7 +24,8 @@ app = FastAPI(
if settings.all_cors_origins:
app.add_middleware(
CORSMiddleware,
allow_origins=settings.all_cors_origins,
# allow_origins=settings.all_cors_origins,
allow_origins=['https://dashboard.daheimao.top','http://dashboard.daheimao.top'],
allow_credentials=True,
allow_methods=["*"],
allow_headers=["*"],