0

我需要使用需要联系服务器的Xcode 模拟器部署我的应用程序。我需要将其列入白名单以允许其在应用程序中访问。

由于我正在使用MAF 2.3.1,它不再支持远程 URL 白名单。因此,请帮助我将部署服务器的远程 URL 列入白名单,以便应用程序正常工作。

4

1 回答 1

0

在你的 index.html 文件中添加

<meta http-equiv="Content-Security-Policy" content="default-src 'self' example.com">

或在您的 config.xml 文件集中

<access origin="http://google.com" />

于 2016-06-28T06:27:43.183 回答