hoxy
hoxy copied to clipboard
Enable basic proxy auth
Our proxy uses basic auth. So I had to insert this line to enable. I'm not sure if this is the best place but works for me:
@@ -189,6 +189,7 @@ HTTP.createServer(function handleRequest(request, response) {
}
// this method makes node re-use client objects if needed
+ if(pEnvProxy.auth) reqInfo.headers['Proxy-Authorization'] = 'Basic ' + new Buffer(pEnvProxy.auth).toString(
var proxyReq = HTTP.request({
method: reqInfo.method,
what do you think?
Note: I'm working toward a 1.0 version, but there's a v0.x maintenance branch to support the previous version.
Very useful - authentication could allow someone to securely share their website modifications with others
@behboud How are you doing this currently? Any pointers?
Definitely seems nice to have. Can someone point to a gist or code sample of this being implemented in node? I may chase it down myself eventually, but a lot on my plate at the moment.
@devinrhode2 only used it with above modifications a year ago. Did not investigate any further...