用react写了个登录的测试
fetch('https://180.101.147.89:8743/iocm/app/sec/v1.1.0/login', {
method: 'POST',
headers: {
"Content-Type": "application/x-www-form-urlencoded"
},
body: 'appId=********&secret=*******'//账号是可用的
}).then( res => res.json() ).then( res => {
console.log(res.toString());
alert('恭喜您注册成功了');
}).catch(function (err) {
console.log(err);
});
Login.js:33 POST https://180.101.147.89:8743/iocm/app/sec/v1.1.0/login net::ERR_BAD_SSL_CLIENT_AUTH_CERT
在localhost:443调试返回显示的错误是net::ERR_BAD_SSL_CLIENT_AUTH_CERT
TypeError: Failed to fetch
换了个http的是可以的
该怎么导入证书