how to add authentication header to $window.open how to add authentication header to $window.open angularjs angularjs