-
Notifications
You must be signed in to change notification settings - Fork 29.5k
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
Allow unsecure connections to localhost for web extensions #138780
Comments
The use case for this is actually pretty wide. Imagine a scenario where you need inter-process communication between a VS Code web extension and a third-party app installed locally on the user machine (eg, LSP server or debugger). We can't expect each user to install a certificate in this case. For the same reason, unsecured connections to |
Just noticed that when running I've checked the modern browsers (outside of VS Code) and they are all allowing unsecured connections to localhost by default (even when served from If I understand correctly, encrypting connections to localhost doesn't really benefit security: https://palant.info/2019/04/11/bogus-security-mechanisms-encrypting-localhost-traffic/ Really hope VS Code will lift the restriction, as it makes very troublesome (if at all possible) to talk with local apps from web extensions. |
@alexdima Maybe it's sufficient to allow the combination of localhost and unsecure web sockets, like |
…0.0.1 via http and ws protocols, #138780
…and 127.0.0.1 via http and ws protocols, microsoft/vscode#138780 Commit: 12b1d5c06dc8198e7d0e87cad2fefc918a483d29
This should work with tomorrows insiders |
I'm developing an extension, which is connecting to a local websocket server to provide additional metadata and utilities for the edited documents. The extension is currently running on .NET runtime and works fine via unsecured websocket connection.
I want to migrate the extension to the browser environment, so it can work on both
vscode.dev
and standalone VS Code instances.I was able to make the extension work in browser. Again, it's using unsecure websocket connection to local server and works fine.
However, the same thing doesn't work in standalone mode, where unsecure connections to localhost are not allowed.
Given it's allowed in all the other cases (regular extensions, web extensions in browser), I wonder if it's possible to also allow it for web extensions running in standalone.
The text was updated successfully, but these errors were encountered: