未验证 提交 c0d88619 编写于 作者: M Matt Bierner 提交者: GitHub

Merge pull request #74086 from SimonSiefke/portmapping

fix #74085 (port mapping for websockets)
......@@ -165,7 +165,8 @@ class WebviewPortMappingProvider extends Disposable {
session.onBeforeRequest(async (details) => {
const uri = URI.parse(details.url);
if (uri.scheme !== 'http' && uri.scheme !== 'https') {
const allowedSchemes = ['http', 'https', 'ws', 'wss'];
if (allowedSchemes.indexOf(uri.scheme) === -1) {
return undefined;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册