Skip to content

Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia

Fix proxy URL

NBTXf6316ca956d6
diff --git a/pages/index.vue b/pages/index.vue
index 3c4553356..7581936ab 100644
--- a/pages/index.vue
+++ b/pages/index.vue
@@ -711,7 +711,7 @@
const config = this.$store.state.postwoman.settings.PROXY_ENABLED ? {
method: 'POST',
- url: '/proxy',
+ url: `${window.location.protocol}//${window.location.host}/proxy`,
data: requestOptions
} : requestOptions;