mirror of
https://github.com/processone/ejabberd
synced 2025-10-05 02:29:34 +02:00
Add X-Admin and basic auth header to CORS allowed headers in http_api
This commit is contained in:
parent
96d05dad8f
commit
054382f074
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue