DEV Community

Discussion on: How To Deploy a Full-Stack MERN App with Heroku/Netlify

 
stlnick profile image
Nick

I'm very glad it helped! And now you've helped me by giving me a better idea of what I'll need to do to set my cors up properly for Netlify instead of allowing all cors. So thank you!

Thread Thread
 
jealousgx profile image
JealousGx • Edited

I am getting the same cors error from the browser. I tried surfing the internet for the solution but could not find one and could not understand the Netlify's documentation either.

Now, the thing is: I want to register/login using my backend to save all the data and to retrieve it. I have changed everything from the client side, it looks fine to me and the server is also up and running. This is the only issue. How did you resolve it. Could you elaborate it?

--
For some reasons, I can not upload the image here but I am pretty sure you got the same error as mine. It's like:

Access to XML....(BACKEND URL) from origin (FRONTEND URL) has been blocked by CORS policy....

@stlnick
@salyadav
There is more to the error but I am just pointing out the main one.
I hope you get the point and help me resolve it asap!

--
Cheers~