Allow graphiql to pass credentials to the server (#162)

This commit is contained in:
Georg Semmler 2018-03-29 03:02:46 +00:00 committed by theduke
parent 841fd7e26d
commit 2ea7d9b46e

View file

@ -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();