mirror of
https://github.com/vitodeploy/vito.git
synced 2025-04-22 03:02:20 +00:00
22 lines
541 B
JavaScript
22 lines
541 B
JavaScript
/**
|
|
* We'll load the axios HTTP library which allows us to easily issue requests
|
|
* to our Laravel back-end. This library automatically handles sending the
|
|
* CSRF token as a header based on the value of the "XSRF" token cookie.
|
|
*/
|
|
|
|
import axios from 'axios';
|
|
|
|
window.axios = axios;
|
|
|
|
window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';
|
|
|
|
import toastr from 'toastr';
|
|
|
|
window.toastr = toastr;
|
|
|
|
window.toastr.options = {
|
|
"debug": false,
|
|
"positionClass": "toast-bottom-right",
|
|
"preventDuplicates": true,
|
|
}
|