Fix lax cors configuration (#295)

This commit is contained in:
Geometrically 2022-02-12 19:57:00 -07:00 committed by GitHub
parent e576a58ead
commit 4498b89ac4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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(