diff --git a/examples/juniper/src/main.rs b/examples/juniper/src/main.rs index 643ecb353..c0be2754e 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())