Try to use intranet when client and server are on the same network.
[x] find IP of server
[x] auth / security kinda works: no actual auth token, but an ID that requires auth to obtain, and then can be used by a single IP, within the same network which seems like enough
[x] intercept every HTTP request and add required parameters
[x] polyfill secure headers: dpr and viewport are required for image generation, but aren't passed on insecure connections, so we just store it when obtaining the ID and re-use based on matched ID
[ ] upload of files => doesn't work because I either can't modify the Request url, or if I do I lose the FormData duplex
[ ] switch websocket connections => doesn't work though I haven't investigated too much, i just don't get any connection request and the client hangs forever
[ ] stream audio files => barely works, it doesn't seem to handle streaming, but does end up sending the entire file somehow (no idea how, in the Network tab, every request is either failed or canceled or took forever and has weird headers / no data...)
Maybe a better alternative to all of this mess would be to limit the scope to
Try to use intranet when client and server are on the same network.
dpr
andviewport
are required for image generation, but aren't passed on insecure connections, so we just store it when obtaining the ID and re-use based on matched IDRequest
url, or if I do I lose theFormData
duplexMaybe a better alternative to all of this mess would be to limit the scope to
This is what takes most of the bandwidth anyway