I\'m using axios to make a axios.get call in my redux action.js file. In my component this action is performed on form submission.
I\'m getting status 200
200
The problem is not with axios. The issue is with the server. When you serve up data you must add the following headers, before sending it.
Access-Control-Allow-Origin must be set to *
Access-Control-Allow-Headers must be set to Origin, X-Requested-With, Content-Type, Accept