Skip to content

Commit

Permalink
trying to fix cors
Browse files Browse the repository at this point in the history
  • Loading branch information
joshika39 committed Apr 16, 2024
1 parent 00b18f8 commit ee9035a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,12 @@
version="1.0.0"
)

origins = ["*"]

app.add_middleware(
CORSMiddleware,
allow_origins=["*"],
allow_origins=origins,
allow_credentials=True,
allow_methods=["*"],
allow_headers=["*"],
)

Expand Down

0 comments on commit ee9035a

Please sign in to comment.