From 102ed7823bd9d7142a41a4f40536926ee09f7b5e Mon Sep 17 00:00:00 2001 From: "ranmo.cy" Date: Tue, 31 Aug 2021 15:06:20 +0800 Subject: [PATCH] fix: relative path of xhr. --- bridge/polyfill/src/xhr.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bridge/polyfill/src/xhr.ts b/bridge/polyfill/src/xhr.ts index b00eb62189..ad6ea3f3e3 100644 --- a/bridge/polyfill/src/xhr.ts +++ b/bridge/polyfill/src/xhr.ts @@ -184,7 +184,7 @@ export class XMLHttpRequest extends EventTarget { } let ssl = false; - let url = new URL(this.settings.url); + let url = new URL(this.settings.url, location.href); let host; // Determine the server switch (url.protocol) {