working on internal network setup

This commit is contained in:
Thilo Behnke
2022-06-11 15:31:43 +02:00
parent b77ce89e80
commit 6e52c1926e
3 changed files with 3 additions and 3 deletions

View File

@@ -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)
}

View File

@@ -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");

View File

@@ -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",