[SOLVED] Getting CORS error-No 'Access-Control-Allow-Origin' header is present |
(07-20-2018, 08:40 AM)InsiteFX Wrote: Cross-Origin Resource Sharing (CORS) Fixed it. It was not the issue with access control but stupid js was showing error for it. It was actually happening because I was doing post request using axios and the data I was passing to the ajax request was a js object. It was needed to be stringified using the qs.stringify method. I did it and it got fixed. Btw, I am using vue js for this app. And here is my final code Code: this.$axios({ |
Messages In This Thread |
[SOLVED] Getting CORS error-No 'Access-Control-Allow-Origin' header is present - by aslamdoctor - 07-20-2018, 06:48 AM
RE: Getting CORS error-No 'Access-Control-Allow-Origin' header is present on the request - by InsiteFX - 07-20-2018, 08:40 AM
RE: Getting CORS error-No 'Access-Control-Allow-Origin' header is present on the request - by aslamdoctor - 07-20-2018, 09:10 AM
|