commit 92ec0de9984771ab187c4470808607b6af260c4e
parent b729d413c5c77919ba8cd901dabe8e5848895c50
Author: lash <dev@holbrook.no>
Date: Fri, 2 May 2025 10:31:50 +0100
Add HEAD to allowed methods
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/response.rs b/src/response.rs
@@ -28,7 +28,7 @@ pub fn origin_headers() -> Vec<Header> {
});
headers.push(Header{
field: HeaderField::from_str("Access-Control-Allow-Methods").unwrap(),
- value: AsciiString::from_ascii("OPTIONS, PUT, GET").unwrap(),
+ value: AsciiString::from_ascii("OPTIONS, PUT, GET, HEAD").unwrap(),
});
headers.push(Header{
field: HeaderField::from_str("Access-Control-Allow-Headers").unwrap(),