From f27edbff892b899f8205933654bd7568ec10f9fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Fro=C5=82ow?= Date: Thu, 1 Mar 2018 01:01:27 +0100 Subject: [PATCH] be consistent with host - had CORS preflight once --- examples/juniper/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/juniper/src/main.rs b/examples/juniper/src/main.rs index 643ecb35..c0be2754 100644 --- a/examples/juniper/src/main.rs +++ b/examples/juniper/src/main.rs @@ -62,7 +62,7 @@ impl Handler for GraphQLExecutor { } fn graphiql(_req: HttpRequest) -> Result { - let html = graphiql_source("http://localhost:8080/graphql"); + let html = graphiql_source("http://127.0.0.1:8080/graphql"); Ok(HttpResponse::build(StatusCode::OK) .content_type("text/html; charset=utf-8") .body(html).unwrap())