验证码接口添加请求头信息Version:v1.0.2
This commit is contained in:
parent
8db3d03eea
commit
6ef114fd34
|
@ -131,11 +131,11 @@ function FormDom(props) {
|
|||
const codeyzm = () => {
|
||||
const xhr = new XMLHttpRequest()
|
||||
xhr.open('GET', window.baseurl + '/auth/login/verify')
|
||||
xhr.setRequestHeader('Version','v1.0.2');
|
||||
xhr.responseType = "arraybuffer";
|
||||
xhr.onreadystatechange = function (response) {
|
||||
response.header = {
|
||||
'Accept': 'application/json',
|
||||
'Version':'v1.0.2',
|
||||
'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8',
|
||||
}
|
||||
let uniques = xhr.getResponseHeader('Unique-Str')
|
||||
|
|
Loading…
Reference in New Issue