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: [email protected]
For additional commands, e-mail: [email protected]