methodofaction / Method-Draw

Method Draw, the SVG Editor for Method of Action
http://editor.method.ac
MIT License
2.82k stars 712 forks source link

load query parameter doesn't work #142

Open tobei opened 2 years ago

tobei commented 2 years ago

When using the load query parameter the passed URL is never queried, even though "loading image" toast does sometimes flash. I didn't find any outgoing request in the network inspector and I no image or error appears. Tried with images hosted on several different domains allowing cross-origin, and didn't see any cross-origin error.

tobei commented 2 years ago

It seems the $.ajax(url, opts) used to load URL passed to the query "load" parameters omits the 'crossDomain: true' option that would allow the editor to download images from CORS enabled image servers.