You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Peter Hoyer (JIRA)" <ji...@apache.org> on 2017/04/23 09:15:04 UTC
[jira] [Created] (CB-12688) XHR to local network with CSP ms-appx
works on phone but not on PC (Windows 10 UWP)
Peter Hoyer created CB-12688:
--------------------------------
Summary: XHR to local network with CSP ms-appx works on phone but not on PC (Windows 10 UWP)
Key: CB-12688
URL: https://issues.apache.org/jira/browse/CB-12688
Project: Apache Cordova
Issue Type: Bug
Components: Windows
Affects Versions: 4.3.2
Environment: Cordova version is 6.2.0, PC Windows version is 10.0.14393 on x64.
Reporter: Peter Hoyer
In a Cordova-based app I need to send XMLHttpRequest requests to a destination in the local network. Following https://github.com/apache/cordova-windows/blob/master/cordova-windows10.md I have set the policy:
<platform name="windows">
<preference name="WindowsDefaultUriPrefix" value="ms-appx://"/>
</platform>
In the Cordova build file. Local network access now works fine on the phone, but not on the PC. Although the PC correctly uses the URL base ms-appx:// (to check I build a version causing a crash and WRE reports the correct URI base), all local requests receive ready state 4 and status 0.
I have made sure that there are neither access nor allow-navigation policies in the xml file.
Cordova version is 6.2.0, PC Windows version is 10.0.14393 on x64.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org