Skip to content

Commit

Permalink
fix: allow all origins
Browse files Browse the repository at this point in the history
  • Loading branch information
arodindev committed Aug 17, 2024
1 parent e67008d commit 22c5615
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion todoapp/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ async def read_root() -> FileResponse:
if settings.BACKEND_CORS_ORIGINS:
app.add_middleware(
CORSMiddleware,
allow_origins=[str(origin) for origin in settings.BACKEND_CORS_ORIGINS],
allow_origins=["*"],
allow_credentials=True,
allow_methods=["*"],
allow_headers=["*"],
Expand Down

0 comments on commit 22c5615

Please sign in to comment.