問題描述
服務(wù)器成功返回,但是報(bào)異常

image

image

image
問題分析
報(bào)錯(cuò)信息中存在CORS關(guān)鍵字,考慮為跨域問題
解決方式
在返回的響應(yīng)頭中加入以下信息
Access-Control-Allow-Origin: http://192.168.1.102
Access-Control-Allow-Credentials: true
Content-Type: text/html; charset=utf-8
服務(wù)器成功返回,但是報(bào)異常
報(bào)錯(cuò)信息中存在CORS關(guān)鍵字,考慮為跨域問題
在返回的響應(yīng)頭中加入以下信息
Access-Control-Allow-Origin: http://192.168.1.102
Access-Control-Allow-Credentials: true
Content-Type: text/html; charset=utf-8