UWP Windows10 cordova App access API through VPN not working RRS feed

  • Question

  • 1)If we add capability in Remote mode,App will fail in window store validation? Please confirm
    2)So have changed from Remote mode to Local mode by adding preferrence 
    "<preference name="WindowsDefaultUriPrefix" value="ms-appx://" /> " and added "privateNetworkClientServer" cabability as well.
    3)API was able access with VPN now but App show CSP warning , so added below meta for inline javascript
     " <meta http-equiv="Content-Security-Policy" content="default-src gap://ready file://* *; style-src 'self' http://* https://* 'unsafe-inline'; script-src 'self' http://* https://* 'unsafe-inline' 'unsafe-eval'">"
    4)App using google map API inside app which is like below,
        const mapScriptSrc = 'http://www.google.com/maps/api/js?key=' + APIKEY +;
        $.getScript(mapScriptSrc, function (data, textStatus, jqxhr) {
        if (textStatus === 'success') {
            var map = new google.maps.Map(document.getElementById("divMapElement"), {});
    App failing to load map how can we allow this inline javascript?
    And will there be any issue while submitting to Windows store with above changes?
    • Changed type AlienAsh Tuesday, November 10, 2020 5:29 AM
    Monday, November 9, 2020 11:19 AM


  • AlienAsh,

    Sorry but you have posted to a forum that deals exclusively with questions/issues about customizing and programming Microsoft Project, a project management application. I suggest you re-post to the following:



    Monday, November 9, 2020 5:59 PM