Update Proxy URL (#1436)
* Update proxy URLs * Update URLs in Vue file Had to edit with web editor to avoid vs code changing indentation. * Delete settings.json Co-authored-by: Sam Jakob Mearns <me@samjakob.com> Co-authored-by: Liyas Thomas <liyascthomas@gmail.com>
This commit is contained in:
@@ -13,7 +13,7 @@ export const cancelRunningAxiosRequest = () => {
|
||||
const axiosWithProxy = async (req, { state }) => {
|
||||
try {
|
||||
const { data } = await axios.post(
|
||||
state.postwoman.settings.PROXY_URL || "https://postwoman.apollosoftware.xyz/",
|
||||
state.postwoman.settings.PROXY_URL || "https://hoppscotch.apollosoftware.xyz/",
|
||||
{
|
||||
...req,
|
||||
wantsBinary: true,
|
||||
|
||||
@@ -18,7 +18,7 @@ export const cancelRunningExtensionRequest = () => {
|
||||
const extensionWithProxy = async (req, { state }) => {
|
||||
const { data } = await window.__POSTWOMAN_EXTENSION_HOOK__.sendRequest({
|
||||
method: "post",
|
||||
url: state.postwoman.settings.PROXY_URL || "https://postwoman.apollosoftware.xyz/",
|
||||
url: state.postwoman.settings.PROXY_URL || "https://hoppscotch.apollosoftware.xyz/",
|
||||
data: {
|
||||
...req,
|
||||
wantsBinary: true,
|
||||
|
||||
@@ -206,7 +206,7 @@ export default {
|
||||
FRAME_COLORS_ENABLED: this.$store.state.postwoman.settings.FRAME_COLORS_ENABLED || false,
|
||||
PROXY_ENABLED: this.$store.state.postwoman.settings.PROXY_ENABLED || false,
|
||||
PROXY_URL:
|
||||
this.$store.state.postwoman.settings.PROXY_URL || "https://postwoman.apollosoftware.xyz/",
|
||||
this.$store.state.postwoman.settings.PROXY_URL || "https://hoppscotch.apollosoftware.xyz/",
|
||||
PROXY_KEY: this.$store.state.postwoman.settings.PROXY_KEY || "",
|
||||
|
||||
EXTENSIONS_ENABLED:
|
||||
@@ -257,7 +257,7 @@ export default {
|
||||
fb.writeSettings("syncEnvironments", true)
|
||||
},
|
||||
resetProxy({ target }) {
|
||||
this.settings.PROXY_URL = `https://postwoman.apollosoftware.xyz/`
|
||||
this.settings.PROXY_URL = `https://hoppscotch.apollosoftware.xyz/`
|
||||
target.innerHTML = this.doneButton
|
||||
this.$toast.info(this.$t("cleared"), {
|
||||
icon: "clear_all",
|
||||
|
||||
Reference in New Issue
Block a user