From 8b1e91a2e5b49ee5409b4f6181be70e0f29cf43c Mon Sep 17 00:00:00 2001 From: Nicolas Favre-Felix Date: Mon, 18 Nov 2013 08:03:18 +0000 Subject: [PATCH] #89: Add Authorization to CORS headers --- http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/http.c b/http.c index 5bd3143..09001e2 100644 --- a/http.c +++ b/http.c @@ -37,7 +37,7 @@ http_response_init(struct worker *w, int code, const char *msg) { Access-Control-Allow-Headers cannot be a wildcard and must be set with explicit names */ - http_response_set_header(r, "Access-Control-Allow-Headers", "X-Requested-With, Content-Type"); + http_response_set_header(r, "Access-Control-Allow-Headers", "X-Requested-With, Content-Type, Authorization"); return r; }