-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
breakage with extensions connecting to localhost #15107
Comments
I have just tested with a third extension GhostText which works in the same way, and witnessed exactly the same results, i.e. Brave is broken and Chrome is not. |
Related to this: #15004 |
Thanks @ryanbr, that's really good to know. Just to confirm: I tried testing with shields down and it didn't help. Is that because the block is happening within the extension rather than within the (unshielded) webpage I'm trying to use the extension on? |
As confirmed on stsquad/emacs_chrome#179 this is also a problem with regular HTTP connections, not just websockets. I've updated the title and description accordingly. |
Not ideal, but turning off ads & trackers in shields globally (via brave://settings/shields) should help with an extension. For a website, it can be tuned more for a per-site basis. @aspiers |
Thanks for the info! Is there any way to turn it off for just an extension? |
Not currently |
I am being affected by what seems to be this issue but for sites (not extensions) and have two questions. First, what is the rationale behind the policy to block requests to localhost? Second, what is the workflow to workaround this on a per-site basis as referred to by @ryanbr ? Thanks for reading. |
My Websockets also fail. They work both in Firefox and Chrome. Agree with @nickform on the reason that is the case on localhost. |
@aspiers or anyone else, could you confirm if Shields down or turning off adblocking in general helped with extensions connecting to locahost? |
Sorry I can't; I stopped using Brave a while back. |
I went through the extensions listed here:
We have been blocking localhost connections using adblock, and adblock doesn't apply to extensions unless you manually turn on |
Description
At least three extensions which want to open
websocketsconnections to servers onlocalhost
don't work, with connection errors shown on the extension consoles.Steps to Reproduce
localhost
port.<textarea>
fieldWebSocket connection to 'ws://localhost:64292/' failed
andnet::ERR_BLOCKED_BY_CLIENT
in the extension console logs, as described in Doesn't work with Brave: WebSocket connection to localhost fails danhper/atomic-chrome#36 and Doesn't work on Brave: net::ERR_BLOCKED_BY_CLIENT stsquad/emacs_chrome#179 respectively.Actual result:
See danhper/atomic-chrome#36 and stsquad/emacs_chrome#179 for exact results.
Expected result:
No connection errors, and extensions work perfectly.
Reproduces how often:
100% reproducible
Brave version (brave://version info)
This was on Brave version 1.21.73 Chromium: 89.0.4389.72 (Official Build) (64-bit).
I have also tested on Google Chrome version 89.0.4389.72 (Official Build) (64-bit) and both extensions work perfectly.
Version/Channel Information:
Only tried with 1.21.73 so far.
Other Additional Information:
The text was updated successfully, but these errors were encountered: