You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2020/08/09 09:55:48 UTC

[GitHub] [cordova-ios] Pratz007-tech commented on issue #883: No local file access

Pratz007-tech commented on issue #883:
URL: https://github.com/apache/cordova-ios/issues/883#issuecomment-671031859


   After cordova-ios@6.1.0 installation i had cors issue now while doing cordova run browser : App properly runs on localhost on browser (CORS setting added from server side) & api gives me  expected response . But in ios device I can still see the same issue [Error] Origin app://localhost is not allowed by Access-Control-Allow-Origin.
   [Error] XMLHttpRequest cannot load http://myDomain/API/V1/region due to access control checks.
   2:50
   Following added in config.xml :  <platform name="ios">
           <preference name="scheme" value="app" />
           <preference name="hostname" value="localhost" />
           <allow-intent href="itms:*" />
           <allow-intent href="itms-apps:*" />
       </platform> What the thing I am missing ?? Thanks In advance.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org