1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-08-30 16:40:21 +02:00

Merge pull request #88 from rofrol/patch-2

be consistent with host - had CORS preflight once
This commit is contained in:
Nikolay Kim
2018-02-28 17:07:57 -08:00
committed by GitHub

View File

@@ -62,7 +62,7 @@ impl Handler<GraphQLData> for GraphQLExecutor {
}
fn graphiql(_req: HttpRequest<State>) -> Result<HttpResponse> {
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())