node-http-proxy icon indicating copy to clipboard operation
node-http-proxy copied to clipboard

can't rewrite request cookie

Open stephenliu1944 opened this issue 7 years ago • 1 comments

I want to rewrite request cookie using following code, but didn't work.

proxy.on('proxyReq', function (proxyReq, req, res) {
    proxyReq.setHeader('cookie', 'SESSION=123');
});

And is there a way to find API of proxyReq Object?

stephenliu1944 avatar Feb 12 '18 08:02 stephenliu1944

I would be interested in a solution too.

andorfermichael avatar Dec 13 '21 06:12 andorfermichael