在勇敢的浏览器中禁用CORS

发布于 2025-01-23 00:15:20 字数 442 浏览 5 评论 0原文

最近,我已经从Safari切换到Brave safari有一个可怕的虫子 - ,您将从每个站点登录,我正在尝试以CORS禁用模式运行它。

我已经尝试修改通常用于Chrome的命令,但是每次尝试都没有成功:

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

我的本地Angular应用程序正在连接到几个远程服务器,除非我禁用CORS,否则所有请求都会被阻止 - 不,我无法进行任何更改在服务器上。

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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

感性不性感 2025-01-30 00:15:20

这是我的工作,我使用OSX,您不需要关闭其他打开的勇敢的应用程序。

open -n -a /Applications/Brave\ Browser.app/Contents/MacOS/Brave\ Browser --args --user-data-dir="/tmp/brave_dev_sess_1" --disable-web-security

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
撩发小公举 2025-01-30 00:15:20

由于Brave是Chromium Web浏览器的版本,因此适用于Chrome的方法将适用于Brave。请参阅帖子:在Chrome中禁用相同的起源策略

我是 windows + r

brave.exe --user-data-dir="C://Chrome dev session" --disable-web-security "enter url here"

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"
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文