为了账号安全,请及时绑定邮箱和手机立即绑定

获取OTP短信验证失败,打开网页输入手机号点击获取OTP后出现以下错误求大神解答,谢谢! Access to XMLHttpRequest at 'http://localhost:8090/user/getotp' from origin 'http://localhost:63342' has been blocked by CORS policy: The value of the 'Access-Control-Allow-Origin' header in the response mus

短信发送失败

正在回答

2 回答

错了

前端ajax内加xhrFields: {withCredentials: false},

是false不是true

这个是携不携带cookie

4 回复 有任何疑惑可以回复我~
#1

qq___631

正解!!!!
2021-03-31 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

获取OTP短信验证失败,打开网页输入手机号点击获取OTP后出现以下错误求大神解答,谢谢! Access to XMLHttpRequest at 'http://localhost:8090/user/getotp' from origin 'http://localhost:63342' has been blocked by CORS policy: The value of the 'Access-Control-Allow-Origin' header in the response mus

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信