鍍金池/ 問答/HTML5  C++/ angularjs post 報錯:content-Type not allow

angularjs post 報錯:content-Type not allowed preflight response

錯誤

控制臺

前端代碼

回答
編輯回答
蟲児飛

請求頭中的content-Type字段內(nèi)容沒有在Access-Control-Allow-Headers中被設(shè)置為允許。服務(wù)端配置下Access-Control-Allow-Headers。

2017年5月19日 14:43