25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-22 16:20:52 +01:00

Add X-Admin and basic auth header to CORS allowed headers in http_api

This commit is contained in:
Paweł Chmielowski 2016-09-12 15:39:00 +02:00
parent 96d05dad8f
commit 054382f074

View File

@ -101,7 +101,7 @@
-define(AC_ALLOW_HEADERS, -define(AC_ALLOW_HEADERS,
{<<"Access-Control-Allow-Headers">>, {<<"Access-Control-Allow-Headers">>,
<<"Content-Type">>}). <<"Content-Type, Authorization, X-Admin">>}).
-define(AC_MAX_AGE, -define(AC_MAX_AGE,
{<<"Access-Control-Max-Age">>, <<"86400">>}). {<<"Access-Control-Max-Age">>, <<"86400">>}).