I want to get the Ajax requests by using a proxy,
My proxy is set up like this:
var http = require('http'),
httpProxy = require('http-proxy')
function startProxy(){
var proxy = httpProxy.createProxyServer({target:'http://localhost:4200'});
var server = http.createServer(function(req, res) {
proxy.web(req, res);
console.log(req.headers)
});
console.log("listening on port 3200")
server.listen(3200);
}
And I want to access this : Request Headers
but all I have in my console when I log the req.headers is this :
can anyone help me?
via Cornez Corentin
No comments:
Post a Comment