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(