Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Phone Gap Windows Build access rule

When I build cordova build for windows the access rules are failing, following are the information in the console

Access rules must begin with "https://", the following rule will be ignored: .*

Basically it saying it require to begin with https,

Anybody face the same issue.

Thanks Mohsin

like image 520
Mohsin Avatar asked Aug 07 '15 11:08

Mohsin


1 Answers

The warnings can be ignored... sort of.

Windows builds break on non-https access rules, so in order to prevent Windows builds from failing while still allowing other platforms to use non-https rules, cordova filters out the non-https rules while preparing a windows build.

Those "rule will be ignored" messages appearing in your console are to let you know the rule has been filtered out before building the Windows project. If the app depends on access granted by a rule that is being filtered out, add another one that meets the Windows rule requirements.

More specifically:

  • Access rules (<access origin=...>) must begin with "https://", or be "*"
  • Navigation rules (<allow-navigation...>) must begin with "http://", "https://", or "ms-appx-web://"
like image 187
Treer Avatar answered Sep 22 '22 11:09

Treer