mirror of
https://github.com/actix/examples
synced 2024-11-23 14:31:07 +01:00
fix web-cors example
This commit is contained in:
parent
95091272a6
commit
2f6baf4d31
@ -31,7 +31,7 @@ fn main() {
|
||||
http::header::ACCEPT,
|
||||
http::header::CONTENT_TYPE])
|
||||
.max_age(3600)
|
||||
.finish().expect("Can not create CORS middleware")
|
||||
.finish()
|
||||
.register(r);
|
||||
r.method(http::Method::POST).a(info);
|
||||
}))
|
||||
|
Loading…
Reference in New Issue
Block a user