browser-sync cannot proxy https-websites

Apparently https://twitter.com is just a bad example. When I try https://about.gitlab.com/ the synchronization between my browsers does work:

browser-sync start --proxy https://about.gitlab.com/ --logLevel debug

According to the maintainer of browser-sync:

any large site like twitter has multiple techniques in place to prevent proxing like this - and rightly so.

Browsersync is a development tool to be used on local addresses that you're working on - in those cases it will work fine with HTTPS - you'll just have to click accept on the warning about self-signed certs :)


You might need to set https to true

browserSync({
    proxy: "http://example.com/",
    https: true
});

if that doesn't work try to append the https url to browserSync

browserSync.init({
    socket: {
              domain: "https://example.com" //with port if any => localhost:3000
            },
    proxy: 'http://example.com'
});