allow websocket uri for portmapping

This commit is contained in:
Simon Siefke
2019-05-21 22:29:10 +02:00
parent c89b9ffad2
commit 8d861d9632
@@ -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;
}