@ionic/angular 4.0.0-beta.13 : Not allowed to load local resource : with webview 2.2.3 - Ionic CLI 4.3.1

只谈情不闲聊 提交于 2019-11-27 09:37:05

I have found the solution of my problem.

I have done this link which is working perfectly.

https://devdactic.com/ionic-4-image-upload-storage/

And in my config.xml, extra did not write anything.

inshort : new webview plugin are not support file:/// url

first convert url into http://localhost:<post>/url using this function this.webview.convertFileSrc(img);

return this function value like this http://localhost:8080/_file_/data/data/xxx.xxx.xxx.xxx/files/1542782360167.jpg

my suggestion use above link for same kind of problem...

Please try add this to your config.xml:

 <access allows-arbitrary-loads-for-media="true" allows-arbitrary-loads-in-web-content="true" allows-local-networking="true" origin="*"/>
 <allow-navigation href="data:*"/>
 <allow-navigation href="*"/>
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!