Proxy a binary file with node.js without redirecting the traffic?

Is it possible to proxy a binary file (audio/mpeg in my case) with node.js and just modify some headers, but not redirect the files' traffic through your proxy-server?

As I basically just want to add CORS headers to the remote audiofile, to be able to open it via XHttpRequest, this proxy seems to be good solution: https://github.com/gr2m/CORS-Proxy

But would it be possible to just add the headers and "redirecting" to the binary file on a remote Server at the same time, so that the actual file is not being transferred over the proxy?

Answers


Is it possible to proxy a binary file (audio/mpeg in my case) with node.js and just modify some headers, but not redirect the files' traffic through your proxy-server?

No. It's the most heretic thing I'd heard of. I would call it a nonsense. You can NOT do this kind of thing with node.js or any other server-side technology.


Need Your Help

How does "Truphone Anywhere"<TM> place a GSM call on the iPhone?

iphone call gsm

As far as I understand, the only way to place a call from an app is using the tel:// URL scheme, which launches the native phone app. But the Truphone app available on the App Store can place VOIP ...

Storing a DockPanel in a settings file

c# visual-studio-2010 devexpress settings dockpanel

I am attempting to store a DevExpress DockPanel in a settings file. Everything appears to work in the save function, but when I go to load it upon starting the application, The Settings.Default.