Access to XMLHttpRequest at 'http://localhost:8080/user/getotp' from origin 'http://127.0.0.1:8020' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
加上xhrFields:{withCredentials:true},也不行
看下接口名字是不是写错了,我就是写错了,然后报这个错误的