This commit is contained in:
2024-10-28 20:06:24 +08:00
parent 79ed3d41c4
commit 9a8a102858

View File

@@ -38,7 +38,7 @@ if settings.BACKEND_CORS_ORIGINS:
CORSMiddleware,
allow_origins=[
str(origin).strip("/") for origin in settings.BACKEND_CORS_ORIGINS
] + ["http://localhost:3000"]+["http://localhost:5173"]+["http://localhost:5173/aboutUs"],
] + ["http://localhost:3000"]+["http://localhost:5173"]+["http://localhost:5173/aboutUs"]+["https://cms.oneandallmusic.net"]+["https://oneandallmusic.net"],
allow_credentials=True,
allow_methods=["*"],
allow_headers=["*"],