0

Here, in my angular project I am trying to open a link via button where it redirects to the link, by using this:

window.open(MY_LINK, "_self");

In this scenario, I also want to pass an access token in the header when I click the link. I do not want to pass on the access token to the parameter, obviously because of the security purpose.

Is there any way I can achieve this? Any help would be thankful.

Akhil Nair
  • 434
  • 1
  • 6
  • 17

1 Answers1

0

Sorry Akhil but it's not possible to add headers and use it with window.open

For some ideas, I give you this reference stackoverflow

cvekaso
  • 833
  • 1
  • 11
  • 28