aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaweł Chmielowski <pchmielowski@process-one.net>2016-09-12 15:39:00 +0200
committerPaweł Chmielowski <pchmielowski@process-one.net>2016-09-12 15:40:38 +0200
commit054382f074b2739fc6380db83454d1aae26d2f07 (patch)
tree479cbfad53f2f7d1308b85c1bf93482dc7e6cdc6
parentProperly process OPTIONS header in http_api for all paths (diff)
Add X-Admin and basic auth header to CORS allowed headers in http_api
-rw-r--r--src/mod_http_api.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mod_http_api.erl b/src/mod_http_api.erl
index 95a4ad51e..e2f6cc240 100644
--- a/src/mod_http_api.erl
+++ b/src/mod_http_api.erl
@@ -101,7 +101,7 @@
-define(AC_ALLOW_HEADERS,
{<<"Access-Control-Allow-Headers">>,
- <<"Content-Type">>}).
+ <<"Content-Type, Authorization, X-Admin">>}).
-define(AC_MAX_AGE,
{<<"Access-Control-Max-Age">>, <<"86400">>}).