Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deployment error #3

Open
Shivam-teotia opened this issue Sep 12, 2022 · 2 comments
Open

Deployment error #3

Shivam-teotia opened this issue Sep 12, 2022 · 2 comments

Comments

@Shivam-teotia
Copy link

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

@rtewari056
Copy link

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

@Proeditor07
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants