We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a47be82 commit 92f62baCopy full SHA for 92f62ba
src/security/cors.rs
@@ -88,7 +88,7 @@ impl CorsMiddleware {
88
fn build_preflight_response(&self, origin: &[HeaderValue]) -> http_types::Response {
89
let mut response = http_types::Response::new(StatusCode::Ok);
90
response
91
- .insert_header(headers::ACCESS_CONTROL_ALLOW_ORIGIN, origin.clone())
+ .insert_header(headers::ACCESS_CONTROL_ALLOW_ORIGIN, origin)
92
.unwrap();
93
94
.insert_header(
0 commit comments