diff --git a/ejabberd.yml.example b/ejabberd.yml.example index 6bd3c7079..7082dab98 100644 --- a/ejabberd.yml.example +++ b/ejabberd.yml.example @@ -162,6 +162,10 @@ modules: mod_http_api: {} mod_http_upload: put_url: https://@HOST@:5443/upload + custom_headers: + "Access-Control-Allow-Origin": "https://@HOST@" + "Access-Control-Allow-Methods": "GET,HEAD,PUT,OPTIONS" + "Access-Control-Allow-Headers": "Content-Type" mod_last: {} mod_mam: ## Mnesia is limited to 2GB, better to use an SQL backend