Hi,
When i work in Localhost Im not getting Cors . When i host to cloud server im getting an Cors error.
I am using all headers proxy in react js.only local host is working .
Hi,
When i work in Localhost Im not getting Cors . When i host to cloud server im getting an Cors error.
I am using all headers proxy in react js.only local host is working .
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Dinesh DPosted Aug 24, 2021, 11:46 AM
Solution 2
Dinesh DPosted Aug 24, 2021, 11:45 AM
Solution 1
Add cors to your backend server.js file in order to do cross-origin API Calls.
npm install -S cors