[Vuejs]-Vue axios cross origin error to regular web URL

1👍

CORS is actually the problem between the backend and the browser. It’s not Vue blocked your requests, but your browser. By default, browsers restrict cross-origin requests like this.
Read more about CORS at: https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS

To bypass CORS, you should modify the backend to accept requests from your frontend origin, or use a proxy server to send requests on behalf of you.

Leave a comment