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

Data URI fails with cross origin error on iPad #11

Open
rreusser opened this issue Nov 26, 2016 · 0 comments
Open

Data URI fails with cross origin error on iPad #11

rreusser opened this issue Nov 26, 2016 · 0 comments

Comments

@rreusser
Copy link
Member

rreusser commented Nov 26, 2016

Observed behavior: trying to load a data uri fails with a cross origin error on some platforms

Expected behavior: data uris load on all platforms just like any other url would

Steps to reproduce: I tried to load this data uri from glsl-numerify. With a simple resl load command passing it as the source, it works on most platforms just fine. It fails on my iPad with a cross-origin error.

Platform: iPad mini model A1432 (ca. 2012) running iOS 9.1

It seems to work fine if I remove resl and replace it with:

var digitImg = new Image();
digitImg.addEventListener('load', function () {
  ...
});
digitImg.src = require('glsl-numerify').digits.uri;

except this defeats the purpose of the annoying async loading that resl exists to prevent. It may just be that data uris should be detected and handled slightly differently.

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