Ahora el token se envia en la cabecera HTTP
This commit is contained in:
parent
72415ebeb2
commit
a06d1a579c
|
@ -32,7 +32,7 @@ function vnAppInterceptor($q, $rootScope, logger, $translate, $cookies) {
|
|||
|
||||
let token = $cookies.get('vnToken');
|
||||
if (token)
|
||||
config.url = config.url += '?access_token=' + encodeURIComponent(token);
|
||||
config.headers.Authorization = token;
|
||||
|
||||
return config;
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue