Skip to content

Commit

Permalink
removed hard-coded cors origins and methods
Browse files Browse the repository at this point in the history
  • Loading branch information
deshetti committed Jun 6, 2022
1 parent dcea71f commit 6519a52
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,8 @@

app.add_middleware(
CORSMiddleware,
# allow_origins=settings.CORS_ORIGINS,
# allow_methods=settings.CORS_METHODS,
allow_origins=["*"],
allow_methods=["*"],
allow_origins=settings.CORS_ORIGINS,
allow_methods=settings.CORS_METHODS,
allow_headers=["*"],
)

Expand Down

0 comments on commit 6519a52

Please sign in to comment.