Fixed header inclusion mistake
This commit is contained in:
@@ -315,16 +315,23 @@ export default {
|
|||||||
query: gql.getIntrospectionQuery()
|
query: gql.getIntrospectionQuery()
|
||||||
});
|
});
|
||||||
|
|
||||||
|
let headers = {};
|
||||||
|
this.headers.forEach((header) => {
|
||||||
|
headers[header.key] = header.value;
|
||||||
|
});
|
||||||
|
|
||||||
const reqOptions = {
|
const reqOptions = {
|
||||||
method: "post",
|
method: "post",
|
||||||
url: this.url,
|
url: this.url,
|
||||||
headers: {
|
headers: {
|
||||||
...this.headers,
|
...headers,
|
||||||
"content-type": "application/json"
|
"content-type": "application/json"
|
||||||
},
|
},
|
||||||
data: query
|
data: query
|
||||||
}
|
}
|
||||||
|
|
||||||
|
console.log(reqOptions);
|
||||||
|
|
||||||
const reqConfig = this.$store.state.postwoman.settings.PROXY_ENABLED
|
const reqConfig = this.$store.state.postwoman.settings.PROXY_ENABLED
|
||||||
? {
|
? {
|
||||||
method: "post",
|
method: "post",
|
||||||
|
|||||||
Reference in New Issue
Block a user