Skip to content

Commit

Permalink
remove cors for production
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshuamjv2 committed Sep 12, 2024
1 parent a3115e8 commit 94f4d22
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
app = FastAPI()


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


@app.get("/", status_code=200)
Expand Down

0 comments on commit 94f4d22

Please sign in to comment.