Tuesday 30 May 2017

HTTPS proxy does not receive HTTP connect from Chrome?

I have the following simple proxy server setup in Node.js:

var http = require('http');

var server = http.createServer().listen(8080);

server.addListener('connection', () => {
    console.log('connection');
});

server.addListener('connect', () => {
    console.log('connect');
});

When redirecting HTTPS traffic through Chrome to the proxy server the HTTP connect event is not triggered, but connection is. However, when redirecting the traffic through Firefox the connect event triggered fine. What am I missing here?

I'm controlling Chrome's proxy settings through an extension with the following code:

var proxyDetails = {
    value: {
        mode: 'fixed_servers',
        rules: {
            proxyForHttps: {
                scheme: 'https',
                host: '127.0.0.1',
                port: 8080
            }
        }
    }
};

chrome.proxy.settings.set(proxyDetails);



via soren.qvist

No comments:

Post a Comment