1
0
mirror of https://github.com/actix/examples synced 2025-02-02 09:39:03 +01:00

Update main.rs

This commit is contained in:
krircc 2019-03-30 09:43:07 +08:00 committed by GitHub
parent 9c8389e06e
commit a45aaec412
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,7 +15,7 @@ fn main() -> std::io::Result<()> {
App::new()
.wrap(
Cors::new()
.allowed_origin("http://localhost:1234")
.allowed_origin("http://localhost:8080")
.allowed_methods(vec!["GET", "POST"])
.allowed_headers(vec![header::AUTHORIZATION, header::ACCEPT])
.allowed_header(header::CONTENT_TYPE)