Vue-resource: CORS cookies don't sent

Created on 8 Dec 2016  路  3Comments  路  Source: pagekit/vue-resource

CORS cookies dont sended with this options.

Vue.http.options.credentials = true
Vue.http.options.xhr = {withCredentials: true}

Most helpful comment

I use 'interceptors' to set all pre-requests, current it's work

Example:
~
Vue.http.interceptors.push((request, next) => {
request.credentials = true;
next();
});
~

All 3 comments

second this.
I have also issues with sending CORS cookies

I use 'interceptors' to set all pre-requests, current it's work

Example:
~
Vue.http.interceptors.push((request, next) => {
request.credentials = true;
next();
});
~

Vue.http.interceptors.push((request, next) => {
request.credentials = true;
next();
});

is right

Was this page helpful?
0 / 5 - 0 ratings

Related issues

EmilMoe picture EmilMoe  路  5Comments

gbhlwm picture gbhlwm  路  5Comments

briward picture briward  路  4Comments

yozman picture yozman  路  6Comments

nivv picture nivv  路  4Comments