cordova-plugin-whitelist icon indicating copy to clipboard operation
cordova-plugin-whitelist copied to clipboard

android Not allowed to load local resource

Open happyi opened this issue 5 years ago • 0 comments

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

happyi avatar Apr 03 '19 07:04 happyi