From: stephengeorgewest Date: Fri, 22 Apr 2022 12:20:47 +0000 (-0600) Subject: add Access-Control-Allow-Headers content-length X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=420786927eea22b7a009f03b0b867058d0818e99;p=thirdparty%2Ftvheadend.git add Access-Control-Allow-Headers content-length --- diff --git a/src/http.c b/src/http.c index 72a498317..903b26a07 100644 --- a/src/http.c +++ b/src/http.c @@ -370,7 +370,7 @@ http_send_header(http_connection_t *hc, int rc, const char *content, if (config.cors_origin && config.cors_origin[0]) { htsbuf_qprintf(&hdrs, "Access-Control-Allow-Origin: %s\r\n%s%s%s", config.cors_origin, "Access-Control-Allow-Methods: POST, GET, OPTIONS\r\n", - "Access-Control-Allow-Headers: x-requested-with,authorization\r\n", + "Access-Control-Allow-Headers: x-requested-with,authorization,content-type\r\n", "Access-Control-Allow-Credentials: true\r\n"); } }