Replies: 1 comment 6 replies
-
The mitm is not for spying on what you download - all doe i could just change it at any given point and sneak something in there, but that would never happen. I would be violating so many rules. I don't even have any Server side logs or google analytics that tracks IP, referer, online time etc Mitm only lazy loaded in a hidden iframe once the download begins. It's a mean of transferring a MessageChannel from a the main thread to a external https site that installs a service worker and mimic what a server dose to download stuff without intervene in your own local service worker (if you have that) If service worker wasn't required then there would be any need for for a sw.js or a mitm.html To change it you to your own you would also need to host the mitm.html: // StreamSaver can detect and use the Ponyfill that is loaded from the cdn.
streamSaver.WritableStream = streamSaver.WritableStream
streamSaver.TransformStream = streamSaver.TransformStream
// if you decide to host mitm + sw yourself
streamSaver.mitm = 'https://example.com/custom_mitm.html' |
Beta Was this translation helpful? Give feedback.
-
I'm a bit new to streamsaver so, sorry if this is a dumb question. What is mitm.html file? And if I want to host my own mitm.html, how do I do that?
Beta Was this translation helpful? Give feedback.
All reactions