【发布时间】:2019-03-31 13:18:27
【问题描述】:
我正在尝试从本地服务器(使用 httpd 插件)在 In App Browser 中加载内容。网页来自 https,而本地服务器正在加载当然是 http。
我正在 Iphone x IOS 12 上进行测试。使用 adobe Build
试过了:
<access origin='*' allows-arbitrary-loads-in-media='true' allows-arbitrary-loads-in-web-content='true' allows-local-networking='true' />
<edit-config target="NSAllowsArbitraryLoads" file="*-Info.plist" mode="merge">
<true />
</edit-config>
<plugin name="cordova-plugin-transport-security" source="npm" />
错误:
[blocked] The page at https://somewebpage was not allowed to run insecure content from http://127.0.0.1:8080/javascripts/somejsfile.js.
这些都不起作用。有人有什么建议吗?
【问题讨论】:
标签: ios cordova http inappbrowser app-transport-security