I am setting up authentication for an app. After I make a post request to login, a JSON Web Token is sent in response. I am able to attach this to the header via Ajax. The p
Short answer is: you cannot set HTTP headers using window.location.
window.location
Adding http headers to window.location.href in Angular app