Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -11,19 +11,11 @@ from fastapi.encoders import jsonable_encoder
|
|
| 11 |
app = FastAPI()
|
| 12 |
|
| 13 |
origins = [
|
| 14 |
-
"http://localhost",
|
| 15 |
-
"http://localhost:8080",
|
| 16 |
-
"http://127.0.0.1",
|
| 17 |
-
"http://127.0.0.1:8080",
|
| 18 |
-
"https://localhost",
|
| 19 |
-
"https://localhost:8080",
|
| 20 |
-
"https://127.0.0.1",
|
| 21 |
-
"https://127.0.0.1:8080"
|
| 22 |
]
|
| 23 |
|
| 24 |
app.add_middleware(
|
| 25 |
CORSMiddleware,
|
| 26 |
-
allow_origins=
|
| 27 |
allow_credentials=True,
|
| 28 |
allow_methods=["*"],
|
| 29 |
allow_headers=["*"],
|
|
|
|
| 11 |
app = FastAPI()
|
| 12 |
|
| 13 |
origins = [
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
]
|
| 15 |
|
| 16 |
app.add_middleware(
|
| 17 |
CORSMiddleware,
|
| 18 |
+
allow_origins=["*"],
|
| 19 |
allow_credentials=True,
|
| 20 |
allow_methods=["*"],
|
| 21 |
allow_headers=["*"],
|