Skip to content
This repository has been archived by the owner on Dec 5, 2019. It is now read-only.

problem angular $http.post #259

Open
HASSANDL opened this issue Oct 3, 2016 · 0 comments
Open

problem angular $http.post #259

HASSANDL opened this issue Oct 3, 2016 · 0 comments

Comments

@HASSANDL
Copy link

HASSANDL commented Oct 3, 2016

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';
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant