CORS Issue: Unable to Access API from Frontend in MERN Stack Application [closed]
Closed 3 days ago.
CORs options reponse being html
I am trying to make an API call to this server, it is working using thunderClient but when i am making a call using my frontend, i am getting this error
CORS Error Response to preflight request doesn’t pass access control check: It does not have HTTP ok status
Hello i’ve been developing a MERN app, instead of MongoDB is MySQL, so its MySQl ERN app.
My site is a simple blog, post blogs with a name, and the content of the blog.
So i implemented CORS while developing all in localhost (server and frontend sides). Everything works fine
So i deploy my app, the server side of the page is located on Render host service, and the Frontend side is located on Netlify
When i do a POST request through axios to post a blog, CORS error and the following: “Response to preflight request doesn’t pass access control check: It does not have HTTP ok status.” That didn’t happen when I made all the requests with localhost (server and frontend side).