Fixed header inclusion mistake
This commit is contained in:
parent
e999d7428a
commit
5f79ca2872
1 changed files with 8 additions and 1 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Reference in a new issue