mirror of
https://github.com/actix/examples
synced 2025-02-02 09:39:03 +01:00
Update main.rs
This commit is contained in:
parent
9c8389e06e
commit
a45aaec412
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user