We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0b25869 commit e88337bCopy full SHA for e88337b
1 file changed
src/http.rs
@@ -343,8 +343,11 @@ fn cors_layer(origins: &[String]) -> CorsLayer {
343
CorsLayer::new()
344
.allow_origin(origins)
345
.allow_methods([Method::GET, Method::POST, Method::OPTIONS])
346
- .allow_headers(Any)
347
- .allow_credentials(true)
+ .allow_headers([
+ axum::http::header::AUTHORIZATION,
348
+ axum::http::header::CONTENT_TYPE,
349
+ axum::http::header::ACCEPT,
350
+ ])
351
}
352
353
// ---------------------------------------------------------------------------
0 commit comments