mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-06-30 12:40:04 +02:00
Update npm dependencies
This commit is contained in:
1894
package-lock.json
generated
1894
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -26,7 +26,7 @@
|
||||
"@fortawesome/free-brands-svg-icons": "^5.15.4",
|
||||
"@fortawesome/free-solid-svg-icons": "^5.15.4",
|
||||
"@fortawesome/vue-fontawesome": "^2.0.6",
|
||||
"axios": "^0.24.0",
|
||||
"axios": "^1.0.0",
|
||||
"bulma": "^0.9.3",
|
||||
"bulma-checkradio": "^2.1.2",
|
||||
"bulma-switch": "^2.0.0",
|
||||
@ -34,7 +34,7 @@
|
||||
"object-equals": "^0.3.0",
|
||||
"v-clipboard": "^2.2.3",
|
||||
"vue": "^2.6.14",
|
||||
"vue-axios": "^3.4.0",
|
||||
"vue-axios": "~3.4.0",
|
||||
"vue-i18n": "^8.26.7",
|
||||
"vue-notification": "^1.3.20",
|
||||
"vue-pull-refresh": "^0.2.7",
|
||||
|
15
resources/js/api.js
vendored
15
resources/js/api.js
vendored
@ -6,20 +6,7 @@ import router from './routes.js'
|
||||
Vue.use(VueAxios, axios)
|
||||
|
||||
Vue.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';
|
||||
|
||||
// let token = document.head.querySelector('meta[name="csrf-token"]');
|
||||
|
||||
// if (token) {
|
||||
// Vue.axios.defaults.headers.common['X-CSRF-TOKEN'] = token.content;
|
||||
// } else {
|
||||
// console.error('CSRF token not found: https://laravel.com/docs/csrf#csrf-x-csrf-token');
|
||||
// }
|
||||
|
||||
Vue.axios.interceptors.request.use(function (request) {
|
||||
|
||||
request.headers.common['Content-Type'] = 'application/json'
|
||||
return request
|
||||
})
|
||||
Vue.axios.defaults.headers.common['Content-Type'] = 'application/json'
|
||||
|
||||
Vue.axios.interceptors.response.use(response => response, error => {
|
||||
|
||||
|
Reference in New Issue
Block a user