This commit is contained in:
parent
5aecf1ef26
commit
86cc2ea889
@ -54,9 +54,14 @@ impl Server {
|
|||||||
.data(app)
|
.data(app)
|
||||||
.finish();
|
.finish();
|
||||||
|
|
||||||
let cors = vec!["http://localhost:3000"
|
let cors = vec![
|
||||||
.parse()
|
"http://localhost:3000"
|
||||||
.expect("Could not parse url")];
|
.parse()
|
||||||
|
.expect("Could not parse url"),
|
||||||
|
"https://scel.front.kjuulh.io"
|
||||||
|
.parse()
|
||||||
|
.expect("Could not parse url"),
|
||||||
|
];
|
||||||
|
|
||||||
let app = Router::new()
|
let app = Router::new()
|
||||||
.route("/", routing::get(graphql_playground).post(graphql_handler))
|
.route("/", routing::get(graphql_playground).post(graphql_handler))
|
||||||
|
Loading…
Reference in New Issue
Block a user