Skip to content

Commit 9402d58

Browse files
committed
return backend CORS
1 parent ba35324 commit 9402d58

File tree

1 file changed

+1
-1
lines changed
  • {{cookiecutter.project_slug}}/backend/app/app

1 file changed

+1
-1
lines changed

{{cookiecutter.project_slug}}/backend/app/app/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
if settings.BACKEND_CORS_ORIGINS:
1717
app.add_middleware(
1818
CORSMiddleware,
19-
allow_origins=["*"],
19+
allow_origins=[str(origin) for origin in settings.BACKEND_CORS_ORIGINS],
2020
allow_credentials=True,
2121
allow_methods=["*"],
2222
allow_headers=["*"],

0 commit comments

Comments
 (0)