Hi,
I've updated my generator to the latest version, and the authentication was not working on IE9.
I found the issue in the server/auth/auth.service.js file in this line:
req.headers.authorization = 'Bearer ' + req.query.access_token;
req.query.access_token is undefined, so I make a workaround like this:
if(req.headers['user-agent'].indexOf("MSIE") >= 0){
var aux = req.headers.cookie.split(';');
var token = aux[aux.length-1].trim();
token= token.replace('token=','');
req.headers.authorization = 'Bearer ' + token;
}
It can be useful for other people.
Hi,
I've updated my generator to the latest version, and the authentication was not working on IE9.
I found the issue in the server/auth/auth.service.js file in this line:
req.query.access_token is undefined, so I make a workaround like this:
It can be useful for other people.