Fix lax cors configuration (#295)
This commit is contained in:
parent
e576a58ead
commit
4498b89ac4
@ -240,10 +240,9 @@ async fn main() -> std::io::Result<()> {
|
||||
App::new()
|
||||
.wrap(
|
||||
Cors::default()
|
||||
.allowed_methods(["GET", "POST", "DELETE", "PATCH", "PUT"])
|
||||
.allowed_headers([http::header::AUTHORIZATION, http::header::ACCEPT])
|
||||
.allowed_header(http::header::CONTENT_TYPE)
|
||||
.allow_any_origin()
|
||||
.allow_any_header()
|
||||
.allow_any_method()
|
||||
.max_age(3600),
|
||||
)
|
||||
.wrap(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user