Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CORS + Tainted canvas w/r/t BBModBrushManager2D #1

Open
brannondorsey opened this issue Jun 22, 2015 · 2 comments
Open

CORS + Tainted canvas w/r/t BBModBrushManager2D #1

brannondorsey opened this issue Jun 22, 2015 · 2 comments

Comments

@brannondorsey
Copy link
Member

Loading images from other servers and using them with the BBModImageBrush2D class can cause BBModBrushManager2D's canvas to become tainted. For this reason the documentation for both of these classes should clearly document this. More here:
https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image

@brannondorsey
Copy link
Member Author

It appears that Safari completely refuses to use any of our images (at least when served via MAMP) with error Cross-origin image load denied by Cross-Origin Resource Sharing policy.

@brannondorsey
Copy link
Member Author

The NS_ERROR_NOT_AVAILABLE error in Firefox seems to be fixed by removing

this._fboImage.crossOrigin = "anonymous"

In the BBModBrushManager2D constructor. For now I am going to keep that line commented out as it fixes the brush manager functionality (at least some of it) for Firefox and Safari, but more research needs to be put into CORS + why setting crossOrigin = "anonymous" is causing this error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant