js ajax请求传token
方法一:
headers: { Authorization: "BasicAuth " + token }
方法二:
beforeSend: function (xhr) { xhr.setRequestHeader(‘Authorization‘, ‘BasicAuth ‘ +token); }
原文地址:https://www.cnblogs.com/zlp520/p/9645951.html
时间: 2024-10-03 04:32:15
js ajax请求传token
方法一:
headers: { Authorization: "BasicAuth " + token }
方法二:
beforeSend: function (xhr) { xhr.setRequestHeader(‘Authorization‘, ‘BasicAuth ‘ +token); }
原文地址:https://www.cnblogs.com/zlp520/p/9645951.html