cordova-plugin-whitelist
cordova-plugin-whitelist copied to clipboard
android Not allowed to load local resource
config.xml
<content src="http://ylh-test.mezeron.cn/yiren-remote/index.html" />
<access origin="cdvfile://*" />
<access origin="content:///*" />
<access origin="file://*" />
<access origin="*" />
<allow-navigation href="*" />
<allow-intent href="http://*/*" />
<allow-intent href="https://*/*" />
<allow-intent href="tel:*" />
<allow-intent href="sms:*" />
<allow-intent href="mailto:*" />
<allow-intent href="geo:*" />
<allow-intent href="cdvfile://*" />
load img like below
<img src="file:///storage/emulated/0/Android/data/cn.mezeron.yiren.test/cache/1554273302432.jpg"/>
it's get error:
Not allowed to load local resource: file:///storage/emulated/0/Android/data/cn.mezeron.yiren.test/cache/1554273302432.jpg