angularjs - Redirect to external site, passing Authorization header -


i route user web site angular application using $window.open(url, ''). directed login page there requirement single sign on user can access external site if logged in application. external site has asked send javascript web token in authorisation header using bearer schema when redirect user.

how can set authorization header in angular when sending user anther site. i've ever used header in context of communicating api ($http.get()), rather sending user elsewhere. don't think $window.open has means might need use else.

although question similar, answer describes sending token parameter in url. authorization header not used. how add authentication header $window.open


Comments

Popular posts from this blog

java - Suppress Jboss version details from HTTP error response -

gridview - Yii2 DataPorivider $totalSum for a column -

Sass watch command compiles .scss files before full sftp upload -