imagej / imagej2

Open scientific N-dimensional image processing :microscope: :sparkler:
https://imagej.net/
BSD 2-Clause "Simplified" License
1.2k stars 337 forks source link

Enable CORS for the sample images on imagej.net #256

Closed oeway closed 4 years ago

oeway commented 4 years ago

This is a feature request about the imagej.net website, sorry if I am posting in the wrong place.

For the "Open Samples" menu in ImageJ.JS (https://ij.imjoy.io/), we cannot read images from the browser because there is no CORS header sent by the imagej.net server. I had to use a cors proxy server to load sample images for the moment, but all the data will pass through a free proxy server which can be slower, insecure (e.g. when fetching macro scripts), unstable. Would be nice if imagej.net could enable the CORS header directly.

ctrueden commented 4 years ago

@oeway I've enabled CORS for all LOCI-managed sites. Please let us know how it works for you now.

CC @hinerm

oeway commented 4 years ago

It works perfectly! Thanks!

Just tried, open samples images becomes much faster as well.