How to pass credentials through a fetch request in vuejs?

前端 未结 0 678
失恋的感觉
失恋的感觉 2021-02-07 09:08

I tried to pass credentials like this:

fetch(this.url + \'/auth/login\', {method:\'GET\', 
  headers: {\'Authorization\': \'Basic \' + btoa(\'xxxx:xxxx\')}})
  .t         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题