Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -14,7 +14,7 @@ from fastapi.middleware.cors import CORSMiddleware
|
|
14 |
|
15 |
app.add_middleware(
|
16 |
CORSMiddleware,
|
17 |
-
allow_origins=["http://localhost:3000"], # Allows only requests from your React app
|
18 |
allow_credentials=True,
|
19 |
allow_methods=["*"], # Allows all methods
|
20 |
allow_headers=["*"], # Allows all headers
|
|
|
14 |
|
15 |
app.add_middleware(
|
16 |
CORSMiddleware,
|
17 |
+
allow_origins=["http://localhost:3000","https://chity-chat-front-vercel.vercel.app"], # Allows only requests from your React app
|
18 |
allow_credentials=True,
|
19 |
allow_methods=["*"], # Allows all methods
|
20 |
allow_headers=["*"], # Allows all headers
|