I am using Angular 9. I would like to do something similar to this, but do not want to expose the token because of security reasons.
<a href="https://url?jwt=xxx">
or
window.location.href = "https://url?jwt=xxx";
So because these two options are not a good idea, is there a way to redirect to a url and add the token to the header? Or is there another viable way?
More info:
In my use case, I would like to redirect the user to a different url. In order to access the url, the server hosting it requires the jwt to authenticate the user.