-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels