Skip to content

Commit 64cfcb3

Browse files
committed
fix cors issue
1 parent 8f9cbcc commit 64cfcb3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ impl Cors for ResponseBuilder {
4040
);
4141
} else if let Some((_, origin)) = request_headers
4242
.iter()
43-
.find(|(name, _value)| name.as_str() == "Origin")
43+
.find(|(name, _value)| name.as_str().eq_ignore_ascii_case("origin"))
4444
{
4545
if allowed_origins
4646
.iter()

0 commit comments

Comments
 (0)