Spaces:
Running
Running
Commit
·
1a54bda
1
Parent(s):
3a56021
Updated CORSMiddleware for render server
Browse files- src/main.py +1 -1
src/main.py
CHANGED
@@ -60,7 +60,7 @@ app = FastAPI(title="Chatbot API")
|
|
60 |
app.add_middleware(
|
61 |
CORSMiddleware,
|
62 |
allow_origins=["http://localhost:8080",
|
63 |
-
"http://localhost:3000"], # Add both ports
|
64 |
allow_credentials=True,
|
65 |
allow_methods=["*"], # Allows all methods
|
66 |
allow_headers=["*"], # Allows all headers
|
|
|
60 |
app.add_middleware(
|
61 |
CORSMiddleware,
|
62 |
allow_origins=["http://localhost:8080",
|
63 |
+
"http://localhost:3000", "https://chatbot-react-frontend.onrender.com", "https://chatbot.neurovise.ai"], # Add both ports
|
64 |
allow_credentials=True,
|
65 |
allow_methods=["*"], # Allows all methods
|
66 |
allow_headers=["*"], # Allows all headers
|