StreamSaver.js icon indicating copy to clipboard operation
StreamSaver.js copied to clipboard

Is there an explanation for self hosting mitm + sw?

Open rogusdev opened this issue 11 months ago • 2 comments

If I use a custom mitm.html it seems that I also need the sw.js hosted locally, but then it needs some path setup on my http server to route back to sw.js or mitm.html or something to handle urls in the format of domain.com/12345/Filename.ext but there's no place I can find quite where all of those are defined as to what to route where.

Can this be explained? I'm happy to update the docs if an explanation here is developed, even across multiple responses.

Thanks!

rogusdev avatar Mar 31 '25 05:03 rogusdev

I do see this PR https://github.com/jimmywarting/StreamSaver.js/pull/248 but tbh that does not actually explain anything to me. There is no reference to the url routing needed, and that seems to be the important part that I am the most confused by.

rogusdev avatar Mar 31 '25 05:03 rogusdev

I do see this PR #248 but tbh that does not actually explain anything to me. There is no reference to the url routing needed, and that seems to be the important part that I am the most confused by.

I tested the examples online, but they didn't work. Cannot modify mitm

bbhxwl avatar Apr 03 '25 08:04 bbhxwl