Skip to content

Commit 41815c7

Browse files
committed
fix: do not proxy non-http URLs
1 parent f9281b8 commit 41815c7

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/routines/proxyRequest.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,13 @@ const proxyRequest = async (proxyRequestConfiguration: ProxyRequestConfiguration
6969
request,
7070
} = proxyRequestConfiguration;
7171

72+
// e.g. data URI scheme
73+
if (!request.url().startsWith('http://') || !request.url().startsWith('https://')) {
74+
request.continue();
75+
76+
return;
77+
}
78+
7279
const headers = appendDefaultChromeHeaders(request);
7380

7481
log.debug({

0 commit comments

Comments
 (0)