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:
parent
96d05dad8f
commit
054382f074
@ -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">>}).
|
||||||
|
Loading…
Reference in New Issue
Block a user