You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Kerri Shotts (JIRA)" <ji...@apache.org> on 2017/04/23 15:38:04 UTC

[jira] [Commented] (CB-12688) XHR to local network with CSP ms-appx works on phone but not on PC (Windows 10 UWP)

    [ https://issues.apache.org/jira/browse/CB-12688?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15980438#comment-15980438 ] 

Kerri Shotts commented on CB-12688:
-----------------------------------

What phone(s) have you tested on?

> 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
>              Labels: windows
>
> 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