koolkishan / chat-app-react-nodejs

Chat Application Using React, Node.js and Socket.io with MongoDB

Home Page:https://www.youtube.com/watch?v=otaQKODEUFs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Deployment error

Shivam-teotia opened this issue · comments

What are changes that we have to make in cors
After deployment frontend to netlify and backend to heroku.?

What are changes that we have to make in cors After deployment frontend to netlify and backend to heroku.?

app.use(cors({ origin: "<YOUR_FRONTEND_DEPLOYED_PROJECT_URL>" })); // Add this in line no 10 in index.js file inside server folder

hey still i am getting those CROS and socket error. Have you deployed it successfully? Can you please guide me a little