code: function applyNavigationWhitelist (config, manifest) {
  
      if (manifest.prefix !== 'uap:') {
          // This never should happen, but to be sure let's check
          throw new Error('AllowNavigation whitelist rules must be applied to Windows 10 appxmanifest only.');
      }
  
      var UriSchemeTest = /^(?:https?|ms-appx-web):\/\//i;
  
      var whitelistRules = config.getAllowNavigations()
          .filter(function (rule) {
              if (UriSchemeTest.test(rule.href)) return true;
  
              events.emit('warn', 'The following navigation rule had an invalid URI scheme and will be ignored: "' + rule.href + '".');
              return false;
          })
          .map(function (rule) {
              return rule.href;
          });
  
      var defaultPrefix = config.getPreference('WindowsDefaultUriPrefix');
      if (defaultPrefix !== 'ms-appx://') {
          var hasMsAppxWeb = whitelistRules.some(function (rule) {
              return /^ms-appx-web:\/\/\/$/i.test(rule);
          });
          if (!hasMsAppxWeb) {
              whitelistRules.push('ms-appx-web:///');
          }
      }
  
      manifest.getApplication().setAccessRules(whitelistRules);
  }
docs: Windows 10-based whitelist-plugin-compatible support for the enhanced navigation whitelist.
  Allows WinRT access to origins specified by <allow-navigation href="origin" /> elements.