diff --git a/main.py b/main.py index 7ae5792..7b18f08 100644 --- a/main.py +++ b/main.py @@ -19,11 +19,12 @@ version="1.0.0" ) +origins = ["*"] + app.add_middleware( CORSMiddleware, - allow_origins=["*"], + allow_origins=origins, allow_credentials=True, - allow_methods=["*"], allow_headers=["*"], )