jQuery X-CSRF-TOKEN header in Laravel 5.4

In Laravel 5.4, we already have HTTP client configured out-of-the-box, that we can use in frontend. It is axios. In file resources\assets\js\bootstrap.js we can see the default headers that will be included in every request that we make with axios. However, although jQuery is also bootstraped, the default headers for jQuery are not set. If … Read more