Add Content-Type as authorized header
This commit is contained in:
parent
c618bd9667
commit
92aed98f90
@ -26,7 +26,11 @@ fn make_cors() -> Result<rocket_cors::Cors, rocket_cors::Error> {
|
|||||||
Method::from(HMethod::Get),
|
Method::from(HMethod::Get),
|
||||||
Method::from(HMethod::Post),
|
Method::from(HMethod::Post),
|
||||||
]),
|
]),
|
||||||
allowed_headers: AllowedHeaders::some(&["Authorization", "Accept"]),
|
allowed_headers: AllowedHeaders::some(&[
|
||||||
|
"Authorization",
|
||||||
|
"Accept",
|
||||||
|
"Content-Type",
|
||||||
|
]),
|
||||||
allowed_origins: match env::var("ORDABOK_HOSTS") {
|
allowed_origins: match env::var("ORDABOK_HOSTS") {
|
||||||
Ok(val) => {
|
Ok(val) => {
|
||||||
if val.is_empty() {
|
if val.is_empty() {
|
||||||
|
Loading…
Reference in New Issue
Block a user