From 38949bdeea3369e9390bdc25344149284d366faf Mon Sep 17 00:00:00 2001 From: Badlop Date: Tue, 9 Jun 2020 13:02:45 +0200 Subject: [PATCH] Update example config to include mod_http_upload custom headers (#3288) --- ejabberd.yml.example | 4 ++++ 1 file changed, 4 insertions(+) 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