Add Header to [removed].pathname

前端 未结 1 832
囚心锁ツ
囚心锁ツ 2021-01-11 09:18

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

相关标签:
1条回答
  • 2021-01-11 09:37

    Short answer is: you cannot set HTTP headers using window.location.

    Adding http headers to window.location.href in Angular app

    0 讨论(0)
提交回复
热议问题