Skip to content

Commit

Permalink
Merge pull request #10 from ambujraj/dev
Browse files Browse the repository at this point in the history
added origin for cors
  • Loading branch information
ambujraj authored Jan 15, 2024
2 parents 9a5b01f + 2035eb4 commit 4507bea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion middleware/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
app = FastAPI()

# CORS (Cross Origin Resource Sharing)
origins = ["*"]
origins = ["http://localhost:3000", "https://byteshare-ui.vercel.app"]
app.add_middleware(
CORSMiddleware,
allow_origins=origins,
Expand Down

0 comments on commit 4507bea

Please sign in to comment.