Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
5.4.1
-
osx el capitan
Xcode7.2
Cordova iOS 4.0.1
ios 9.2
Description
config.xml
<?xml version='1.0' encoding='utf-8'?> <widget id="io.cordova.hellocordova" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0"> <name>Smoney</name> <description> A sample Apache Cordova application that responds to the deviceready event. </description> <author email="dev@cordova.apache.org" href="http://cordova.io"> Apache Cordova Team </author> <content src="index.html" /> <plugin name="cordova-plugin-whitelist" spec="0" /> <access origin="*" /> <allow-navigation href="*" /> <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> <platform name="ios"> <allow-intent href="itms:*" /> <allow-intent href="itms-apps:*" /> </platform> </widget>
When i try to load(with javascript) a internal html page (fle:///) for example settings or about i get error.
[Error] Failed to load resource: Origin null is not allowed by Access-Control-Allow-Origin. (settings.html, line 0) [Error] XMLHttpRequest cannot load file:///Users/calin/Library/Developer/CoreSimulator/Devices/6EC99739-0284-4511-A701-13C46CDFB6F4/data/Containers/Bundle/Application/8C5B47AC-CD3D-4AA6-ACDD-990867531E87/Smoney.app/www/settings.html. Origin null is not allowed by Access-Control-Allow-Origin.