Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 48979

Image not load in canvas after updadating to platform api 30 or cordova 10.0.1

$
0
0

when i try to load image in canvas it will show this error
Access to image at 'http://localhost/_app_file_/storage/emulated/0/Android/media/com.abc.xyz/1616587242F2.png' from origin 'https://localhost' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. in index.html.

I convert my url by this this.win.Ionic.WebView.convertFileSrc(imageUrl.toString()); but still i am facing this error.
if i used this URL in image tag then its worked but in canvas i am gating error.
Note : i think this error occurs because cordova 10.0.1 remove whitelist plugin. @mhartington

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 48979

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>