Add Access-Control-Request-Headers header

Signed-off-by: trivernis <trivernis@protonmail.com>
pull/2/head
trivernis 4 years ago
parent 22183916c9
commit 114f660707
Signed by: Trivernis
GPG Key ID: DFFFCC2C7A02DB45

@ -96,7 +96,14 @@ impl UserHttpServer {
"Access-Control-Allow-Methods",
"GET,HEAD,PUT,PATCH,POST,DELETE",
)
.with_additional_header("Vary", "Access-Control-Request-Headers");
.with_additional_header("Vary", "Access-Control-Request-Headers")
.with_additional_header(
"Access-Control-Request-Headers",
request
.header("Access-Control-Request-Headers")
.unwrap_or("content-type")
.to_string(),
);
}
response

Loading…
Cancel
Save