ionic-team / ionic-team/cordova-plugin-ionic-webview

Canvas and Cors

Open
#587 10 comments 3 reactions 0 assignees View on GitHub
needs answer
Dominant language
Objective-C
Stars
493
Forks
410
PR merge metrics
No merged PRs in 30d

Description

Im trying to load local images into canvas (openlayer) and prevent my canvas from getting [tainted](https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image) in the process.

I cannot load "file:///..." urls because it is not allowed.

And I cannot request it from localhost (this.webview.convertFileSrc) hence CORS.

How can I solve the CORS issue that is requesting files locally?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.