獲取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 must not be the wildcard '*' when the request's credentials mode is 'include'. The credentials mode of requests initiated by the XMLHttpRequest is controlled by the withCredentials attribute.
2019-11-27
Ajax跨域請求問題,設置一下屬性就可以了,前端Ajax請求中添加