I am trying to set up a Vuejs fronted application (vue-cli webpack template) to sit on top of my Laravel API.
I am able to get a successful response from the API wit
Add this option:
Vue.http.options.credentials = true;
And use the interceptors for global way:
Vue.http.interceptors.push(function(request, next) { request.headers['Authorization'] = 'Basic abc' //Base64 request.headers['Accept'] = 'application/json' next()
});