mirror of
https://github.com/actix/actix-extras.git
synced 2024-11-24 07:53:00 +01:00
be consistent with host - had CORS preflight once
This commit is contained in:
parent
d62d6e68e0
commit
f27edbff89
@ -62,7 +62,7 @@ impl Handler<GraphQLData> for GraphQLExecutor {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn graphiql(_req: HttpRequest<State>) -> Result<HttpResponse> {
|
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)
|
Ok(HttpResponse::build(StatusCode::OK)
|
||||||
.content_type("text/html; charset=utf-8")
|
.content_type("text/html; charset=utf-8")
|
||||||
.body(html).unwrap())
|
.body(html).unwrap())
|
||||||
|
Loading…
Reference in New Issue
Block a user