From f12a332a6d536027c5fc96ef41109215ec769571 Mon Sep 17 00:00:00 2001 From: Li Zhineng Date: Sat, 12 Jul 2025 22:27:35 +0800 Subject: http --- main.mjs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'main.mjs') diff --git a/main.mjs b/main.mjs index 41bf8e0..04d7c02 100644 --- a/main.mjs +++ b/main.mjs @@ -851,7 +851,10 @@ class SuccessForm extends Form { return null } - const response = await fetch(`https://i.airmx.cn/exchange?device=${this.#deviceId}`) + // We are using HTTP because the domain name is remapped to our local + // mock server, and the communication between the device and our mock + // server utilizes the HTTP protocol as well. + const response = await fetch(`http://i.airmx.cn/exchange?device=${this.#deviceId}`) if (! response.ok) { throw new Error('Could not retrieve the device key.') -- cgit v1.2.3