gpt4 book ai didi

https - 浏览器同步无法代理 https 网站

转载 作者:行者123 更新时间:2023-12-01 12:30:00 26 4
gpt4 key购买 nike

我用 browser-sync 2.11.1 与 OS X Chrome 48.0.2564.97(64 位)

当我使用它作为 http 网站的代理时:
browser-sync start --proxy http://example.com
它工作得很好,我可以将多个浏览器指向 localhost:3000,以便在其中一个浏览器中完成的操作可以在其他浏览器中复制。

但是,当我将它用于 https 网站时:
browser-sync start --proxy https://twitter.com
它不起作用。当我将浏览器指向 localhost:3000 时,它们不会出现在浏览器同步 UI 的“当前连接”中,而且这些操作也不会在它们之间复制。

也许这与我的浏览器提示 https 有关系:
https-error

浏览器同步中是否存在错误或我遗漏了什么?

最佳答案

显然 https://twitter.com只是一个不好的例子。当我尝试时 https://about.gitlab.com/我的浏览器之间的同步确实有效:

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

According给浏览器同步的维护者:

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 :)

关于https - 浏览器同步无法代理 https 网站,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35160697/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com