Allow graphiql to pass credentials to the server (#162)
This commit is contained in:
parent
841fd7e26d
commit
2ea7d9b46e
1 changed files with 1 additions and 0 deletions
|
@ -21,6 +21,7 @@ pub fn graphiql_source(graphql_endpoint_url: &str) -> String {
|
|||
'Accept': 'application/json',
|
||||
'Content-Type': 'application/json',
|
||||
},
|
||||
credentials: 'include',
|
||||
body: JSON.stringify(params)
|
||||
}).then(function (response) {
|
||||
return response.text();
|
||||
|
|
Loading…
Reference in a new issue