TalatMasood commited on
Commit
c5b5569
·
1 Parent(s): 6082154

added front end url to cors

Browse files
Files changed (1) hide show
  1. src/main.py +1 -1
src/main.py CHANGED
@@ -62,7 +62,7 @@ app = FastAPI(title="Chatbot API")
62
  app.add_middleware(
63
  CORSMiddleware,
64
  allow_origins=["http://localhost:8080",
65
- "http://localhost:3000", "https://chatbot-react-frontend.onrender.com", "https://chatbot.neurovise.ai"], # Add both ports
66
  allow_credentials=True,
67
  allow_methods=["*"], # Allows all methods
68
  allow_headers=["*"], # Allows all headers
 
62
  app.add_middleware(
63
  CORSMiddleware,
64
  allow_origins=["http://localhost:8080",
65
+ "http://localhost:3000", , "https://talatmasud-chatbot-frontend.static.hf.space", "https://chatbot-react-frontend.onrender.com", "https://chatbot.neurovise.ai"], # Add both ports
66
  allow_credentials=True,
67
  allow_methods=["*"], # Allows all methods
68
  allow_headers=["*"], # Allows all headers