mirror of
https://github.com/thilo-behnke/wasm-pong.git
synced 2026-05-05 19:56:32 +00:00
working on internal network setup
This commit is contained in:
@@ -417,7 +417,7 @@ pub fn build_success_res(value: &str) -> Result<Response<Body>, Infallible> {
|
||||
headers.insert("Content-Type", "application/json".parse().unwrap());
|
||||
headers.insert(
|
||||
"Access-Control-Allow-Origin",
|
||||
"http://localhost:8080".parse().unwrap(),
|
||||
"*".parse().unwrap(),
|
||||
);
|
||||
Ok(res)
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@ pub mod utils;
|
||||
|
||||
#[tokio::main]
|
||||
pub async fn main() {
|
||||
HttpServer::new([127, 0, 0, 1], 4000, "localhost:9093")
|
||||
HttpServer::new([192, 168, 178, 0], 4000, "localhost:9093")
|
||||
.run()
|
||||
.await
|
||||
.expect("failed to run server");
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
},
|
||||
"scripts": {
|
||||
"build": "webpack --config webpack.config.js",
|
||||
"start": "webpack-dev-server"
|
||||
"start": "webpack-dev-server --host '0.0.0.0'"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
||||
Reference in New Issue
Block a user