Skip to content

Commit

Permalink
Merge pull request #75 from uberduck-ai/zach-fix-cors
Browse files Browse the repository at this point in the history
fix cors
  • Loading branch information
zachwe authored Mar 19, 2024
2 parents 4c99e33 + dfccc38 commit 65bca17
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion openduck-py/openduck_py/routers/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@
# Add CORS middleware to allow requests from localhost:3000
app.add_middleware(
CORSMiddleware,
allow_origins=["http://localhost:3000"],
allow_origins=[
"http://localhost:3000",
"https://openduck.vercel.app",
"https://openduck.ai",
],
allow_credentials=True,
allow_methods=["*"],
allow_headers=["*"],
Expand Down

0 comments on commit 65bca17

Please sign in to comment.