Angular js how to set header get url in new window
<p>How to set headers and open a url (<a href="https://www.example.com" rel="nofollow noreferrer">https://www.example.com</a>) in new window. I've to  send authentication information headers, since it senstive information it should not be part of url request parameters.</p>

<p>I'm using angularjs to do this.</p>

<p>I've gone through existing questions.
<a href="https://stackoverflow.com/questions/24255195/convert-param-in-angularjs">Convert $.param in angularjs</a>
<a href="https://stackoverflow.com/questions/23138671/how-to-add-authentication-header-to-window-open">how to add authentication header to $window.open</a>
<a href="https://stackoverflow.com/questions/30053212/open-a-pdf-in-a-new-window-of-the-browser-with-angularjs">Open a PDF in a new window of the browser with angularjs</a></p>

<p>Solution mentioned are appending the token to the url and some are not working for me.. Please help me..</p>