From 298da237c2e8ae3b605ab60a5f873884a96ed054 Mon Sep 17 00:00:00 2001 From: Christian Schnell Date: Tue, 26 Nov 2024 22:28:54 +0100 Subject: [PATCH] fixed broken FetchNetworkAdapter.cors_prox attribute (#1187) --- src/browser/fetch_network.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/browser/fetch_network.js b/src/browser/fetch_network.js index 6c2cbfde28..9af451bf5f 100644 --- a/src/browser/fetch_network.js +++ b/src/browser/fetch_network.js @@ -128,7 +128,7 @@ async function on_data_http(data) this.write(new Uint8Array(ab)); this.close(); */ - const fetch_url = this.cors_proxy ? this.cors_proxy + encodeURIComponent(target.href) : target.href; + const fetch_url = this.net.cors_proxy ? this.net.cors_proxy + encodeURIComponent(target.href) : target.href; const encoder = new TextEncoder(); let response_started = false; fetch(fetch_url, opts).then((resp) => {