Ahora el token se envia en la cabecera HTTP

This commit is contained in:
Juan Ferrer Toribio 2017-05-19 08:25:49 +02:00
parent 72415ebeb2
commit a06d1a579c
1 changed files with 1 additions and 1 deletions

View File

@ -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;
},