Fix CORS issue (#5232)

* Allow Cors

* Update app.py
This commit is contained in:
merwanehamadi
2023-09-16 10:56:21 -07:00
committed by GitHub
parent cbcdcad43c
commit 991e816ea2

View File

@@ -35,7 +35,11 @@ updates_list = []
import json
origins = ["http://localhost:8080"]
origins = [
"http://localhost:8080",
"http://127.0.0.1:5000",
"http://localhost:5000",
]
app = FastAPI()
app.add_middleware(
CORSMiddleware,