I have an Nginx server running nodejs that serves the api to a couple of my projects. Everything works fine in localhost dev mode, but when i deploy the server, the api is only accessible through postman simulated requests. The error says: rent:1 Failed to load [url removed, login to view]: Response to preflight request doesn't pass access control check: The 'Access-Control-Allow-Origin' header contains multiple values '*, *', but only one is allowed. Origin 'http://localhost:3001' is therefore not allowed access.
This looks like a client side issue, but I can't figure out how to solve it.
The client side is a React.js project. So preferably someone knows react,
21 freelancers are bidding on average $31 for this job
Hello there. I have checked the error message. This is not a client side error but is coming from the server side. The headers are incorrect and that is why security restrictions apply and your request dont work.
Proficient in React native , Reactjs Ionic Framework , MeteorJS and creating hybrid applications. Excellent knowledge of implementing API's and jSON data. Also well in AngularJs, MongoDB, NodeJs.
Hello there, We're a team of developers working on Angular, React & Node JS with Laravel since last 4+ years. Let us take a look at what issue you're having on your React Node app on Nginx server.
Hi, I am interested to work on this project, I understand the issue, I can fix, it s from node side; I would like to discuss with you more details, please come on chat for more info; Contact me; Thanks
I will have the error resolved in very little time. I deal with similar issues on a daily basis and know how to resolve your specific error. P.S. I am trying to earn a reputation on Freelancer, hence my low bid.