File tree 1 file changed +0
-14
lines changed
src/Presets/bootstrap-stubs
1 file changed +0
-14
lines changed Original file line number Diff line number Diff line change @@ -23,20 +23,6 @@ window.axios = require('axios');
23
23
24
24
window . axios . defaults . headers . common [ 'X-Requested-With' ] = 'XMLHttpRequest' ;
25
25
26
- /**
27
- * Next we will register the CSRF Token as a common header with Axios so that
28
- * all outgoing HTTP requests automatically have it attached. This is just
29
- * a simple convenience so we don't have to attach every token manually.
30
- */
31
-
32
- let token = document . head . querySelector ( 'meta[name="csrf-token"]' ) ;
33
-
34
- if ( token ) {
35
- window . axios . defaults . headers . common [ 'X-CSRF-TOKEN' ] = token . content ;
36
- } else {
37
- console . error ( 'CSRF token not found: https://laravel.com/docs/csrf#csrf-x-csrf-token' ) ;
38
- }
39
-
40
26
/**
41
27
* Echo exposes an expressive API for subscribing to channels and listening
42
28
* for events that are broadcast by Laravel. Echo and event broadcasting
You can’t perform that action at this time.
0 commit comments