fix:main.py
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 17:06:08 +08:00
parent 495155af1d
commit 55dd3b3e4f

View File

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