Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee3b9fe commit 1f28efcCopy full SHA for 1f28efc
1 file changed
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