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 2021/08/06 13:05:19 UTC

[GitHub] [cordova] breautek commented on issue #297: Do you want live notifications when people reply to your posts? Enable Notifications Image not load in canvas after updadating to platform api 30 or cordova 10.0.1

breautek commented on issue #297:
URL: https://github.com/apache/cordova/issues/297#issuecomment-894246060


   You're getting the error because you're mixing protocols. E.g. your app is configured to use the scheme `https` but you're attempting to load a `http` url (instead of `https)`, thus you're making a cross origin request.
   
   Try converting the url from http url to https.
   
   Alternatively you can read the `file://` url using the `cordova-plugin-file` plugin to get the `Blob` type and create an [object url](https://developer.mozilla.org/en-US/docs/Web/API/URL/createObjectURL).
   
   I'm closing this issue because CORS is a browser security feature with no API for us to disable it, so our only option work around it. The above should suffice. If you require any more assistance, I'll invite you to join our [Slack community](http://slack.cordova.io/).
   
   Kind regards,
   Norman


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org