Closed kasbah closed 5 years ago
Relevant: https://stackoverflow.com/a/26025618
Hello. That’s because .stl is not supported extension. When we do not support something, we simply redirect to the origin. That’a why you have CORS problems.
Do you want .stl to be supported?
On 1 Jun 2019, at 08:34, Kaspar Emanuel notifications@github.com wrote:
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.
That would be great! MIME is model/stl
I believe. https://www.iana.org/assignments/media-types/model/stl
STLs are now supported. But you have to use specific job URL if you want them to work.
I am not sure bypassing gitlabs CORS policy on artifacts is one of the goals of this project but I would find that really handy. It currently works for most artifacts but not when you are trying to use re-directs.
https://glcdn.githack.com/openflexure/openflexure-microscope/-/jobs/artifacts/master/raw/builds/main_body_LS65.stl?job=STLs
re-directs to
https://gitlab.com/openflexure/openflexure-microscope/-/jobs/223115318/artifacts/raw/builds/main_body_LS65.stl
so when I try and use URLs like that that grab the latest artifacts from the master branch I get CORS errors.