Skip to content

Commit

Permalink
feat: adiciona origins no CORS
Browse files Browse the repository at this point in the history
  • Loading branch information
Matheus73 committed Sep 7, 2022
1 parent 9535fa0 commit f46ed9b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,12 @@

app.add_middleware(
CORSMiddleware,
allow_origins=["*"],
allow_origins=[
"https://2022-1-schedula-front-homol.vercel.app",
"http://localhost:3000",
],
allow_methods=["*"],
allow_credentials=True,
allow_headers=["*"],
)

Expand Down

0 comments on commit f46ed9b

Please sign in to comment.