Spaces:
Sleeping
Sleeping
Update app/main.py
Browse files- app/main.py +2 -10
app/main.py
CHANGED
|
@@ -35,16 +35,8 @@ app = FastAPI(
|
|
| 35 |
# In production, lock this to your actual frontend domain.
|
| 36 |
app.add_middleware(
|
| 37 |
CORSMiddleware,
|
| 38 |
-
allow_origins=[
|
| 39 |
-
|
| 40 |
-
"http://localhost:8081",
|
| 41 |
-
"http://localhost:3000",
|
| 42 |
-
"http://localhost:5173",
|
| 43 |
-
"http://127.0.0.1:8080",
|
| 44 |
-
"http://127.0.0.1:8081",
|
| 45 |
-
"http://127.0.0.1:5173",
|
| 46 |
-
],
|
| 47 |
-
allow_credentials=True,
|
| 48 |
allow_methods=["*"],
|
| 49 |
allow_headers=["*"],
|
| 50 |
expose_headers=["X-Session-Id"],
|
|
|
|
| 35 |
# In production, lock this to your actual frontend domain.
|
| 36 |
app.add_middleware(
|
| 37 |
CORSMiddleware,
|
| 38 |
+
allow_origins=["*"],
|
| 39 |
+
allow_credentials=False,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 40 |
allow_methods=["*"],
|
| 41 |
allow_headers=["*"],
|
| 42 |
expose_headers=["X-Session-Id"],
|