From 2ea7d9b46e6f7c88de3dd3bd31402fd6251648e5 Mon Sep 17 00:00:00 2001
From: Georg Semmler <Georg_semmler_05@web.de>
Date: Thu, 29 Mar 2018 03:02:46 +0000
Subject: [PATCH] Allow graphiql to pass credentials to the server (#162)

---
 juniper/src/http/graphiql.rs | 1 +
 1 file changed, 1 insertion(+)

diff --git a/juniper/src/http/graphiql.rs b/juniper/src/http/graphiql.rs
index d3255138..590909cb 100644
--- a/juniper/src/http/graphiql.rs
+++ b/juniper/src/http/graphiql.rs
@@ -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();