You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2019/04/03 07:03:32 UTC
[GitHub] [cordova-android] happyi opened a new issue #712: Not allowed to
load local resource
happyi opened a new issue #712: Not allowed to load local resource
URL: https://github.com/apache/cordova-android/issues/712
### What is expected to happen?
config.xml like below
```
<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://*" />
```
when load file like below
```
<img src="file:///storage/emulated/0/Android/data/cn.mezeron.yiren.test/cache/1554273302432.jpg"/>
```
gt error :
Not allowed to load local resource: file:///storage/emulated/0/Android/data/cn.mezeron.yiren.test/cache/1554273302432.jpg
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org