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

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/' 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; 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