Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable CORS in Brave Browser

Recently I've switched from Safari to Brave (Safari has a horrible bug - when ever you open dev tools, you get logged out from every site), and I'm trying to run it in CORS disabled mode.

I've tried modifying the command I would usually use for Chrome, but every attempt was unsuccessful:

open /Applications/Google\ Chrome.app --args --user-data-dir="/var/tmp/Chrome dev session" --disable-web-security

My local Angular app is connecting to couple of remote servers and all requests get blocked unless I disable CORS - and no I can't make any changes on the servers.

like image 394
Dino Avatar asked Jan 22 '26 12:01

Dino


2 Answers

here is what work for me, I use OSX this way you don't need to close other opened brave apps.

open -n -a /Applications/Brave\ Browser.app/Contents/MacOS/Brave\ Browser --args --user-data-dir="/tmp/brave_dev_sess_1" --disable-web-security
like image 60
Bojan Avatar answered Jan 26 '26 11:01

Bojan


Because Brave is a version of the Chromium Web Browser, the same methods that work for Chrome will work for Brave. See the post: Disable same origin policy in Chrome

The answer that specifically worked for me was Windows + r

brave.exe --user-data-dir="C://Chrome dev session" --disable-web-security "enter url here"
like image 33
Joshua S Avatar answered Jan 26 '26 09:01

Joshua S



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!