访问被拒绝为mts0& blackberry10 webworks应用程序中的mts1.googleapis.com

时间:2013-10-04 06:47:46

标签: blackberry-10 blackberry-simulator blackberry-webworks

我正在使用Blackberry10 webworks SDK 1.0.4.11开发的Blackberry 10应用程序。我在我的应用程序中使用Google地图。在我的配置文件中,我已经访问了我在我的应用程序中使用的所有网站

<access uri="https://csi.gstatic.com" subdomains="true">
<feature id="blackberry.app" required="true" version="1.0.0"/>
<feature id="blackberry.invoke" required="true" version="1.0.0"/>
</access>

<access uri="http://www.google.com" subdomains="true">
<feature id="blackberry.app" required="true" version="1.0.0"/>
<feature id="blackberry.invoke" required="true" version="1.0.0"/>
</access>

<access uri="https://maps.googleapis.com" subdomains="true">
<feature id="blackberry.app" required="true" version="1.0.0"/>
<feature id="blackberry.invoke" required="true" version="1.0.0"/>
</access>

<access uri="https://maps.gstatic.com" subdomains="true">
<feature id="blackberry.app" required="true" version="1.0.0"/>
<feature id="blackberry.invoke" required="true" version="1.0.0"/>
</access>

<access uri="https://mts.googleapis.com" subdomains="true">
<feature id="blackberry.app" required="true" version="1.0.0"/>
<feature id="blackberry.invoke" required="true" version="1.0.0"/>
</access>

<access origin="https://mts1.googleapis.com" subdomains="true">
<feature id="blackberry.app" required="true" version="1.0.0"/>
<feature id="blackberry.invoke" required="true" version="1.0.0"/>
</access>

<access origin="https://mts1.googleapis.com/vt" subdomains="true">
<feature id="blackberry.app" required="true" version="1.0.0"/>
<feature id="blackberry.invoke" required="true" version="1.0.0"/>
</access>

<access uri="https://mts0.googleapis.com" subdomains="true">
<feature id="blackberry.app" required="true" version="1.0.0"/>
<feature id="blackberry.invoke" required="true" version="1.0.0"/>
</access>

<access uri="https://mts0.googleapis.com/vt" subdomains="true">
<feature id="blackberry.app" required="true" version="1.0.0"/>
<feature id="blackberry.invoke" required="true" version="1.0.0"/>
</access>

<access uri="https://csi.gstatic.com" subdomains="true">
<feature id="blackberry.app" required="true" version="1.0.0"/>
<feature id="blackberry.invoke" required="true" version="1.0.0"/>
</access>

<access uri="https://fonts.googleapis.com" subdomains="true">
<feature id="blackberry.app" required="true" version="1.0.0"/>
<feature id="blackberry.invoke" required="true" version="1.0.0"/>
</access>

<access uri="https://themes.googleusercontent.com" subdomains="true">
<feature id="blackberry.app" required="true" version="1.0.0"/>
<feature id="blackberry.invoke" required="true" version="1.0.0"/>
</access>

但我得到了

&#34;访问&#34; https://mts0.googleapis.com/vt?lyrs=m@2340000&src=apiv3&hl=en-US&x=15&y=15&z=5&scale=5&#34;不允许&#34;我尝试加载地图时发出警报。

当我访问https://mts1.googleapis.com时,也会出现相同的访问拒绝错误。

请帮帮我。

2 个答案:

答案 0 :(得分:0)

如果你想在你的应用程序中使用任何web服务,你必须在'config.xml'文件中添加这些行。否则你将无权访问这些站点。希望这有助于:)

<access uri="http://www.address1.com" subdomains="true">
    <feature id="blackberry.app" required="true" version="1.0.0"/>
    <feature id="blackberry.invoke" required="true" version="1.0.0"/>
  </access>
 <access uri="http://www.address2.com" subdomains="true">
    <feature id="blackberry.app" required="true" version="1.0.0"/>
    <feature id="blackberry.invoke" required="true" version="1.0.0"/>
  </access>

答案 1 :(得分:0)

I need to disable web security. These mts0, mts1, mts2 , mts3 are blacklisted ones. We need to whitelist it, to make it work using this code...

<feature id="blackberry.app">
    <param name="websecurity" value="disable" />
</feature>