Skip to content

Commit

Permalink
Update main.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ZauJulio authored Jan 29, 2024
1 parent f610f8c commit d761596
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,9 @@
openapi_tags=tag_ca
)

origins = [
"http://localhost:4200",
]

app.add_middleware(
CORSMiddleware,
allow_origins=origins,
allow_origins=["*"],
allow_credentials=True,
allow_methods=["*"],
allow_headers=["*"],
Expand All @@ -36,4 +32,4 @@ async def index():
return "HOME"

if __name__ == "__main__":
uvicorn.run(app, host="0.0.0.0", port=8000)
uvicorn.run(app, host="0.0.0.0", port=8000)

0 comments on commit d761596

Please sign in to comment.