tejashsr commited on
Commit
5e4c2ef
·
verified ·
1 Parent(s): bfced6f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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
  )