problem angular $http.post
HASSANDL opened this issue · comments
HASSANDL commented
Hello, very very thanks.
I use this plugin in ios 9 and $http.post is pendding but when don't use this plugin no problem.
in server side, Web.config:
<httpProtocol>
<customHeaders>
<add name="Access-Control-Allow-Origin" value="*" />
<add name="Access-Control-Allow-Headers" value="X-Requested-With, Accept, Origin, Content-Type" />
<add name="Access-Control-Allow-Methods" value="GET, POST, PUT, DELETE, OPTIONS" />
</customHeaders>
</httpProtocol>
in client side only:
$httpProvider.defaults.headers.common['Content-Type'] = 'application/json; charset=utf-8';