You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I try proxy to a site which requires basic authN, the code just hangs (i see no activity after my last log statement) and I am not sure how to debug it further:
var proxy = httpProxy.createProxyServer({});
var app = express();
app.all('/lame/api/versioning', function (req, res) {
console.log('/lame/api/versioning \n matched \t' + req.url);
req.url = '/super/cool';
console.log(' re-routing \t' + req.url);
req.headers["Authorization"] = 'Basic base64encodedSTUFF';
proxy.web(req, res, { target: 'https://secure.app.com:443' });
});
app.listen(8000);
console.log("listening on port 8000");
Thoughts?
The text was updated successfully, but these errors were encountered:
When I try proxy to a site which requires basic authN, the code just hangs (i see no activity after my last log statement) and I am not sure how to debug it further:
Thoughts?
The text was updated successfully, but these errors were encountered: