Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -8,7 +8,8 @@ app = FastAPI(title="Titanium Protocol API")
|
|
| 8 |
# Enable CORS for Vercel Frontend
|
| 9 |
app.add_middleware(
|
| 10 |
CORSMiddleware,
|
| 11 |
-
allow_origins=["*"],
|
|
|
|
| 12 |
allow_methods=["*"],
|
| 13 |
allow_headers=["*"],
|
| 14 |
)
|
|
|
|
| 8 |
# Enable CORS for Vercel Frontend
|
| 9 |
app.add_middleware(
|
| 10 |
CORSMiddleware,
|
| 11 |
+
allow_origins=["*"], # Allows all frontends (Vercel, Localhost, etc.)
|
| 12 |
+
allow_credentials=True,
|
| 13 |
allow_methods=["*"],
|
| 14 |
allow_headers=["*"],
|
| 15 |
)
|