[Vuejs]-Post request via Axios fails while it succeeds from POSTMAN . How?

0👍

Thanks for your inputs.
I solved this issue . The URL in performing the POST request was http://localhost:8000/api/v1/subscribe which after replacing to http://my website.com/api/v1/subscribe worked successfully.

I was performing with the actual URL :

i.e, http://my website.com/api/v1/subscribe in Postman and that’s why it was succeeding. Where as in vue I was using the local host which kept giving error . ☺️

Leave a comment