Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试测试一些用于访问 HTML 页面上的网络摄像头的代码,而 Chrome 似乎不允许我这样做。我为该文件设置了一个例外,但每次我重新加载(它告诉我将使设置生效)时,它都会重新阻止它
去:
chrome://flags/#unsafely-treat-insecure-origin-as-secure
在此处添加您的网址并启用此标志,重新启动它应该可以工作。
您可以使用标志 disable-web-security 打开 chrome
对于 Mac,在终端中:
打开 -a /Applications/Google\ Chrome.app/ --args --disable-web-security
对于控制台中的 PC:
chrome.exe --disable-web-security