currently, downloading an image from the fancybox does not provide an HTTP "accept" header. Thus, some anti -Redacted- measure result in the download not working correctly (thread here).
So I suggest to add such a header when downloading from the fancybox