為什么設置了@CrossOrigin還是訪問不了?
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},也不行
2020-11-18
看下接口名字是不是寫錯了,我就是寫錯了,然后報這個錯誤的