Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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. How can I do it in MAC OS? So i am going inside the location where chrome is installed and running this command

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

But it is throwing error zsh: command not found: chrome.exe

like image 929
sd_30 Avatar asked Oct 28 '25 14:10

sd_30


2 Answers

If you are on a Mac, this is the correct command (Mac does not open .exe files):

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.

like image 88
Alfons Muñoz Avatar answered Oct 31 '25 06:10

Alfons Muñoz


Run this command to open a new Chrome window with a url already specified:

open -n -a Google\ Chrome --args --user-data-dir=/tmp/temp_chrome_user_data_dir http://localhost:3000/ --disable-web-security
like image 40
NicolaeBozbici Avatar answered Oct 31 '25 04:10

NicolaeBozbici



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!