mirror of
https://github.com/sigoden/dufs.git
synced 2026-04-09 09:09:03 +03:00
fix: cors allow-request-header add content-type (#184)
* fix: cors allow-request-header add content-type * add content-type test
This commit is contained in:
@@ -1222,7 +1222,7 @@ fn add_cors(res: &mut Response) {
|
||||
);
|
||||
res.headers_mut().insert(
|
||||
"Access-Control-Allow-Headers",
|
||||
HeaderValue::from_static("Authorization,Destination,Range"),
|
||||
HeaderValue::from_static("Authorization,Destination,Range,Content-Type"),
|
||||
);
|
||||
res.headers_mut().insert(
|
||||
"Access-Control-Expose-Headers",
|
||||
|
||||
Reference in New Issue
Block a user