From 5f79ca2872a1063257d1785ff537b0ac6539dab3 Mon Sep 17 00:00:00 2001 From: Andrew Bastin Date: Mon, 25 Nov 2019 23:42:41 -0500 Subject: [PATCH] Fixed header inclusion mistake --- pages/graphql.vue | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pages/graphql.vue b/pages/graphql.vue index 70e7768a7..0de838f2b 100644 --- a/pages/graphql.vue +++ b/pages/graphql.vue @@ -315,16 +315,23 @@ export default { query: gql.getIntrospectionQuery() }); + let headers = {}; + this.headers.forEach((header) => { + headers[header.key] = header.value; + }); + const reqOptions = { method: "post", url: this.url, headers: { - ...this.headers, + ...headers, "content-type": "application/json" }, data: query } + console.log(reqOptions); + const reqConfig = this.$store.state.postwoman.settings.PROXY_ENABLED ? { method: "post",