2 Replies Latest reply on Dec 15, 2016 2:35 PM by philipw12907718

    http put not returning on iOS

    philipw12907718 Level 1

      Hey everyone. I have been struggling with an issue over here for the last few days. I have an issue where when I am calling my push notification registration API with an http put, the response is never getting to my javascript application. I have proxied my phone to Fiddler on my desktop to view the web traffic, and the response (204) is indeed being returned, but for some reason it's never making it to the app. It's like the iOS browser is blocking the the response from getting back to the application. What is strange and makes me suspicious is that there is an origin header on the request with origin = 'file://', which leads me to believe this may be a strange CORS related issue. Of real interest, is that when making a get call to a different API endpoint there is no origin header being populated, it is only being populated on this specific put call. I have set my white list settings to be as open as possible.


      Here are the settings in my config.xml:


      <access origin="*"/>
      <allow-intent href="http://*/*"/>
      <allow-intent href="https://*/*"/>
      <allow-intent href="tel:*"/>
      <allow-intent href="sms:*"/>
      <allow-intent href="mailto:*"/>
      <allow-intent href="geo:*"/>
      <platform name="android">
        <allow-intent href="market:*"/>
      <platform name="ios">
        <allow-intent href="itms:*"/>
        <allow-intent href="itms-apps:*"/>


      Here is my CSP meta on my SPA's index.html:


      <meta http-equiv="Content-Security-Policy" content="default-src * 'self' ws: ; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data:">


      I would greatly appreciate any advise, as if this takes me much longer to figure out I may have to work through some off days on the holidays in order to make deadline :/