Arquivo da tag: authentication

how to add authentication header to $window.open

//Add authentication headers as params
var params = {
    access_token: 'An access_token',
    other_header: 'other_header'
};
 
//Add authentication headers in URL
var url = [url_generating_pdf, $.param(params)].join('?');
 
//Open window
window.open(url);