简体   繁体   English

如何在 mac 中以不安全模式启动 chrome?

[英]How can I start chrome in insecure mode in mac?

I know how to Start chrome in insecure mode via command line with these options: --disable-web-security --disable-gpu.我知道如何使用以下选项通过命令行以不安全模式启动 chrome:--disable-web-security --disable-gpu。 How can I do it in MAC OS?我怎样才能在 MAC OS 中做到这一点? So i am going inside the location where chrome is installed and running this command所以我要进入安装 chrome 的位置并运行此命令

chrome.exe --user-data-dir="C:/Chrome dev session" --disable-web-security

But it is throwing error zsh: command not found: chrome.exe但它抛出错误zsh: command not found: chrome.exe

If you are on a Mac, this is the correct command (Mac does not open .exe files):如果您使用的是 Mac,这是正确的命令(Mac 不会打开 .exe 文件):

open -a "Google Chrome" --args --disable-web-security --user-data-dir=/tmp/chrome

You need to specify both arguments for the command to work.您需要为命令指定两个参数才能工作。 The first one to disable web security and the second one to specify a folder where Chrome will create the temporary profile and keep the necessary data.第一个禁用网络安全,第二个指定一个文件夹,Chrome 将在其中创建临时配置文件并保留必要的数据。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在浏览器(Chrome、Opera、FF)中启用混合内容(不安全模式)以在 Mac OS 上进行本地开发? - How to enable mixed content (insecure mode) in browsers (Chrome, Opera, FF) for local development at Mac OS? 如何在Chrome中查看带有不安全请求的Web应用程序? - How can I view a web application with insecure and secure requests in Chrome? 如何在Eclipse for Mac中将Chrome设置为默认外部浏览器? - How can I set Chrome as default external browser in Eclipse for Mac? 我如何在 mac os catalina 上使用 npm 启动? - how can i use npm start on mac os catalina? 如何在 Mac OS X 上启动 PostgreSQL 服务器? - How can I start PostgreSQL server on Mac OS X? 如何强制应用程序以隐藏模式启动? (Mac 登录应用程序) - How do I force apps to start in hide mode? (Mac Login Applications) 无法在新安装的mac上以调试模式启动eclipse中的应用程序 - Can't start applications in eclipse in debug mode on newly installed mac 如何在Mac OS X上使用Shell脚本中的标志和URL启动Chrome - How to start Chrome with flags and URL from shell script on mac osx 如何将 mac os x en1 接口置于监视模式以与 python3 scapy 一起使用? - How can I put mac os x en1 interface into monitor mode to use with python3 scapy? 如何在Mac上运行“启动”命令? - How would I run the “start” command on Mac?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM