Skip to content

Commit

Permalink
Whitelist all cors addresses fastapi
Browse files Browse the repository at this point in the history
  • Loading branch information
zzkW35 committed Feb 18, 2024
1 parent ce17ff7 commit 8f7c1f4
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/aidapp/api/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,7 @@

app = FastAPI()

origins = [
"http://localhost:5173",
"https://aidapp-fe.vercel.app/",
"https://app.aidapp.it/",
]
origins = ["*"]

app.add_middleware(
CORSMiddleware,
Expand Down

0 comments on commit 8f7c1f4

Please sign in to comment.