From 5fd2d5759d1a2bd641df8d3fb0aac3338775bf49 Mon Sep 17 00:00:00 2001 From: mortezaei Date: Fri, 15 May 2026 18:39:44 +0330 Subject: [PATCH] fix: ensure proxy usage is always enabled in shouldUseProxy function --- src/lib/http.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib/http.ts b/src/lib/http.ts index 7fbe41e..360e710 100644 --- a/src/lib/http.ts +++ b/src/lib/http.ts @@ -1,4 +1,6 @@ import axios, { type InternalAxiosRequestConfig } from "axios"; +import { authBridge } from "./auth-bridge"; +import { getClientCookie } from "./cookies"; const PROXY_PATH_PARAM = "__proxyPath"; const LOCALHOST_HOSTNAMES = new Set(["localhost", "127.0.0.1", "::1"]); @@ -12,7 +14,7 @@ function shouldUseProxy() { return false; } - return LOCALHOST_HOSTNAMES.has(window.location.hostname) || true; + return true; } function withProxyPathParam(