kwi*_*her 5 ajax post cors angularjs
我在AngularJS应用程序中有一个简单的CORS AJAX调用,并且成功回调:
$http({method:'POST',url:"http://0.0.0.0:4567/authenticate",
params: {Lusername:scope.Lusername,Lpassword:scope.Lpassword}})
.success(function(){alert("Success")})
Run Code Online (Sandbox Code Playgroud)
在Safari中使用时,它可以正常工作:返回预期的JSON对象并显示警告框.但是在Firefox中,虽然正确返回了JSON对象,但不会触发成功回调.
知道为什么吗?