We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ee3b9fe commit 1f28efcCopy full SHA for 1f28efc
src/Symfony/Bundle/Resources/public/init-graphiql.js
@@ -25,12 +25,13 @@ function updateURL() {
25
history.replaceState(null, null, newSearch);
26
}
27
28
-function graphQLFetcher(graphQLParams) {
+function graphQLFetcher(graphQLParams, {headers}) {
29
return fetch(entrypoint, {
30
method: 'post',
31
headers: {
32
'Accept': 'application/json',
33
- 'Content-Type': 'application/json'
+ 'Content-Type': 'application/json',
34
+ ...headers
35
},
36
body: JSON.stringify(graphQLParams),
37
credentials: 'include'
0 commit comments