diff --git a/pages/graphql.vue b/pages/graphql.vue index fc397406a..c0235b1f5 100644 --- a/pages/graphql.vue +++ b/pages/graphql.vue @@ -302,9 +302,9 @@
@@ -505,7 +505,7 @@ export default { try { let headers = {} - this.headers.forEach(header => { + this.headers.forEach((header) => { headers[header.key] = header.value }) @@ -557,7 +557,7 @@ export default { }) let headers = {} - this.headers.forEach(header => { + this.headers.forEach((header) => { headers[header.key] = header.value }) @@ -571,19 +571,8 @@ export default { data: query, } - const reqConfig = this.$store.state.postwoman.settings.PROXY_ENABLED - ? { - method: "post", - url: - this.$store.state.postwoman.settings.PROXY_URL || - `https://postwoman.apollosoftware.xyz/`, - data: reqOptions, - } - : reqOptions + const data = await sendNetworkRequest(reqOptions, this.$store) - const res = await axios(reqConfig) - - const data = this.$store.state.postwoman.settings.PROXY_ENABLED ? res.data : res const schema = gql.buildClientSchema(data.data.data) this.schema = gql.printSchema(schema, { commentDescriptions: true,