1
0
mirror of https://github.com/actix/examples synced 2025-06-26 17:17:42 +02:00

fix cors example

This commit is contained in:
Rob Ede
2022-03-15 17:32:27 +00:00
parent ba7812fb0a
commit c9ebeacf58
4 changed files with 96 additions and 83 deletions

View File

@ -5,8 +5,7 @@ mod user;
#[actix_web::main]
async fn main() -> std::io::Result<()> {
std::env::set_var("RUST_LOG", "actix=info");
env_logger::init();
env_logger::init_from_env(env_logger::Env::default().default_filter_or("info"));
HttpServer::new(move || {
App::new()
@ -22,7 +21,7 @@ async fn main() -> std::io::Result<()> {
.wrap(Logger::default())
.service(user::info)
})
.bind(("127.0.0.1", 8000))?
.bind(("127.0.0.1", 8080))?
.run()
.await
}

View File

@ -10,7 +10,7 @@
"vue": "2.6.12"
},
"devDependencies": {
"@vue/cli-service": "^3.0.0",
"vue-template-compiler": "2.6.12"
"@vue/cli-service": "^5.0.0",
"vue-template-compiler": "^2.6.0"
}
}

View File

@ -14,7 +14,7 @@
<div id="user-info">
<p>Click Above 'Sign up' Button <br> Then Get Your Signup Info!</p>
<p>email : {{ email }}</p>
<p>username {{ username }}</p>
<p>username : {{ username }}</p>
<p>password : {{ password }}</p>
</div>
</div>