我想在我的webview cordova中加载外部URL(https)。
我的内容安全
⟨meta http-equiv="Content-Security-Policy" content="default-src 'self' data: cdvfile://* gap: https://ssl.gstatic.com https://* http://* 'unsafe-eval' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; script-src https://* 'self' 'unsafe-inline' 'unsafe-eval'; media-src *"⟩
Android错误:混合内容:' https://mydomaine.net'是通过HTTPS加载的,但请求了一个不安全的资源&gap:// ready'。此内容也应通过HTTPS提供。
IOS错误:来自调试器的消息:由于内存问题而终止
我的config.xml
<content src="https://mydomaine.net" />
<plugin name="cordova-plugin-whitelist" spec="1" />
<access origin="*" subdomains="true" launch-external="true"/>
<allow-intent href="http://*/*" />
<allow-intent href="https://*/*" subdomains="true" />
<allow-intent href="tel:*" />
<allow-intent href="sms:*" />
<allow-intent href="mailto:*" />
<allow-intent href="geo:*" />
<allow-navigation href="http://*/*" />
<allow-navigation href="https://*/*" subdomains="true" />
<allow-navigation href="data:*" />
<allow-navigation href="*" />
<allow-navigation href="*://*/*"/>
<access origin="http://*/*" launch-external="true" />
<access origin="https://*/*" subdomains="true" launch-external="true"/>
<access origin="content:///*" launch-external="true" />
<access origin="cdvfile://*" launch-external="true" />
我没有使用插件,因为我无法通过inappbrower访问我的设备
有什么想法吗?