We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba35324 commit 9402d58Copy full SHA for 9402d58
{{cookiecutter.project_slug}}/backend/app/app/main.py
@@ -16,7 +16,7 @@
16
if settings.BACKEND_CORS_ORIGINS:
17
app.add_middleware(
18
CORSMiddleware,
19
- allow_origins=["*"],
+ allow_origins=[str(origin) for origin in settings.BACKEND_CORS_ORIGINS],
20
allow_credentials=True,
21
allow_methods=["*"],
22
allow_headers=["*"],
0 commit comments