From 41d20d1e5f1c4c0427f3a14b29ef7b54e459ddb1 Mon Sep 17 00:00:00 2001 From: Tanmoy Sarkar <57363826+tanmoysrt@users.noreply.github.com> Date: Tue, 17 Oct 2023 02:49:04 +0530 Subject: [PATCH] chore: remove dependency on https swiftwave proxy --- src/context/config/configState.jsx | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/context/config/configState.jsx b/src/context/config/configState.jsx index 05e26e2..68a8bc3 100644 --- a/src/context/config/configState.jsx +++ b/src/context/config/configState.jsx @@ -38,15 +38,8 @@ const ConfigState = (props) => { // Get the server host and port const setURI = () => { - if(window.location.host == "dashboard.swiftwave.org" ){ - let baseURL = state.server.host + ":" + state.server.port; - axios.defaults.baseURL = "https://proxy.swiftwave.org"; - axios.defaults.headers.common["X-PROXY-PASS"] = baseURL; - } else { let baseURL = state.server.host + ":" + state.server.port; axios.defaults.baseURL = "http://"+baseURL; - } - }; // Get websocket URI