]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
add Access-Control-Allow-Headers content-length
authorstephengeorgewest <stephen.george.west@gmail.com>
Fri, 22 Apr 2022 12:20:47 +0000 (06:20 -0600)
committerFlole998 <Flole998@users.noreply.github.com>
Fri, 22 Apr 2022 16:49:22 +0000 (18:49 +0200)
src/http.c

index 72a498317cf612a0d5ec6020968a3efa59289687..903b26a0746ae327c28e3bf7f41f6d42ed198025 100644 (file)
@@ -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");
     }
   }