参考
How to skip the OPTIONS preflight request in AngularJS
在factory 定义的function中,加一行:
$http.defaults.headers.post["Content-Type"] = "text/plain";
即可
参考
How to skip the OPTIONS preflight request in AngularJS
在factory 定义的function中,加一行:
$http.defaults.headers.post["Content-Type"] = "text/plain";
即可