[Vuejs]-Request Failed when Add custom headers Vue

-2👍

When dealing with a CORS error, most of the time you do not need to modify your request headers. 99% of the time, the problem is in the backend. Make sure to allow CORS in:

  • Server Configuration and
  • Application

If you are using XAMPP or any Apache server, by default CORS is not enabled. Although you already allow CORS on your application, it will still be blocked by the server.

Take note: make sure to restart your server when making changes to the configuration file

Leave a comment