From b01915e81c38ddee6ddba791060d441476d5b81c Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Tue, 23 Feb 2021 02:56:49 +0100 Subject: mod_http_file_share: Allow credentials via CORS (needed for auth token) --- plugins/mod_http_file_share.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/mod_http_file_share.lua b/plugins/mod_http_file_share.lua index 69627654..17563ad2 100644 --- a/plugins/mod_http_file_share.lua +++ b/plugins/mod_http_file_share.lua @@ -432,6 +432,9 @@ module:hook("iq-get/host/urn:xmpp:http:upload:0:request", handle_slot_request); if not external_base_url then module:provides("http", { streaming_uploads = true; + cors = { + credentials = true; + }; route = { ["PUT /*"] = handle_upload; ["GET /*"] = handle_download; -- cgit v1.2.3