summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorChris Akritidis <43294513+cakrit@users.noreply.github.com>2019-09-19 22:29:30 +0200
committerthiagoftsm <thiagoftsm@gmail.com>2019-09-19 20:29:30 +0000
commit2abbdb532a11aab3670898af0c364fe9c7d3092a (patch)
tree8775952798e3e93274e7e1f7b8561afcfc1de363 /web
parent9094de0f63759554696a6c02d54d01f877ab1cdb (diff)
Permit x-auth-token in Access-Control-Allow-Headers (#6894)
Fixes #6893
Diffstat (limited to 'web')
-rw-r--r--web/server/web_client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/server/web_client.c b/web/server/web_client.c
index 5cf597a5bd..53a5944cee 100644
--- a/web/server/web_client.c
+++ b/web/server/web_client.c
@@ -1212,7 +1212,7 @@ static inline void web_client_send_http_header(struct web_client *w) {
if(w->mode == WEB_CLIENT_MODE_OPTIONS) {
buffer_strcat(w->response.header_output,
"Access-Control-Allow-Methods: GET, OPTIONS\r\n"
- "Access-Control-Allow-Headers: accept, x-requested-with, origin, content-type, cookie, pragma, cache-control\r\n"
+ "Access-Control-Allow-Headers: accept, x-requested-with, origin, content-type, cookie, pragma, cache-control, x-auth-token\r\n"
"Access-Control-Max-Age: 1209600\r\n" // 86400 * 14
);
}