mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-08 17:19:48 +01:00
allow websocket uri for portmapping
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user