Http requests withCredentials what is this and why using it?

Short answer: withCredentials() makes your browser include cookies and authentication headers in your XHR request. If your service depends on any cookie (including session cookies), it will only work with this option set.

 

参考资料:

https://stackoverflow.com/questions/27406994/http-requests-withcredentials-what-is-this-and-why-using-it

posted @ 2022-04-28 14:11  jamstack  阅读(16)  评论(0编辑  收藏  举报