$http({ url: 'http://54.238.128.198:8081/user/register', method: 'POST', headers: { 'Content-Type': 'application/x-www-form-urlencoded' }, data: { 'userName': $scope.myName, 'password': $scope.myPwd } }).then(function(data) { console.log(data); }, function(xhr) { console.log('請求失敗'); });跨域是沒有問題,現在是415錯誤?
angularjs $http.post報錯 415
梵蒂岡之花
2018-12-21 19:14:46