aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_http_file_share.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2021-02-23 02:56:49 +0100
committerKim Alvefur <zash@zash.se>2021-02-23 02:56:49 +0100
commitb01915e81c38ddee6ddba791060d441476d5b81c (patch)
tree32d32beb36967fa7bdc400b51e8dcad372d6d70e /plugins/mod_http_file_share.lua
parentd65d38846d0f5bfc7092b0546c241fc4ee0ae85d (diff)
downloadprosody-b01915e81c38ddee6ddba791060d441476d5b81c.tar.gz
prosody-b01915e81c38ddee6ddba791060d441476d5b81c.zip
mod_http_file_share: Allow credentials via CORS (needed for auth token)
Diffstat (limited to 'plugins/mod_http_file_share.lua')
-rw-r--r--plugins/mod_http_file_share.lua3
1 files changed, 3 insertions, 0 deletions
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;