I have strange problem. I am piping image from S3/Cloudfront. The image is shown ok when put inside img-tag but not directly when opening in browser.
For example this kind of url:
http://localhost:3000/cdn/storage/MyFiles/vBPB27yfHESZfRkCs/original/vBPB27yfHESZfRkCs.jpg
is piped (fake url below)
const url = "https://d28crSOMETHING.cloudfront.net/eyJidWNrZXQiOiJjYXJhd2F5ZXVyb3BlIiwia2V5Ijoic2FsZXNhZHMvd1c3c25iU2I0SmJTUHB4amovVHZaakpUa2hvTkVTN04yc1IuDFanBnIiwiZWRpdHMiOnsicmVzaXplIjp7IndpZHRoIjozMDAwLCJmaXQiOiJvdXRzaWRlIn1=="
request(url).pipe(http.response);
http.response is middleware request instance in https://github.com/VeliovGroup/Meteor-Files
Firefox shows image
What cloud cause this? Thank you for any help :)