8

当我为 Windows 构建科尔多瓦构建时,访问规则失败,以下是控制台中的信息

访问规则必须以“https://”开头,以下规则将被忽略:.*

基本上它说它需要以https开头,

任何人都面临同样的问题。

谢谢莫辛

4

2 回答 2

1

可以忽略警告......有点。

Windows 构建打破了非 https 访问规则,因此为了防止 Windows 构建失败,同时仍允许其他平台使用非 https 规则,cordova 在准备 windows 构建时过滤掉非 https 规则

出现在控制台中的那些“规则将被忽略”消息是为了让您知道在构建 Windows 项目之前该规则已被过滤掉。如果应用程序依赖于被过滤掉的规则授予的访问权限,请添加另一个满足 Windows 规则要求的应用程序。

进一步来说:

于 2016-05-05T10:35:53.960 回答
0

If you are using white-list rules, and you did NOT provide phonegap-version in your config.xml, you get the latest version. It is good to add version to your config.xml and all your plugins

EXAMPLE additions

::
<preference name="phonegap-version" value="3.5.0" />
::
<gap:plugin name="org.apache.cordova.device" version="0.2.12" />

In addition, you need to use the white-list plugin. Please read the following "official" form post: Notes for upgrading to cli-5.1.1 on PGB
http://community.phonegap.com/nitobi/topics/notes-for-upgrading-to-cli-5-1-1-on-pgb

于 2015-08-07T21:40:04.097 回答