Getting costumes from external sources

WAT?Bitmaps get tainted too,i think?

I don't think so.

They do,atleast in my projects

Well I could be wrong. I generally download to disk images that I'm going to want to use in a project.

Brian, you show a method of adding a "dynamic" costume permanently to the sprite's wardrobe,
not how to avoid tainting data downloaded by script from a foreign origin.

We discuss two options:

  1. A third-party specialized proxy that converts an image into a stream of pixels
  2. General-purpose CORS proxy and variations of the built-in cst_load()

As some kind of proxy is unavoidable, cst_load() must be modified to be CORS compliant
img.crossOrigin = 'anonymous';

Also, there are some problems with the service worker being too hungry and caching foreign host requests.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.