Software /
code /
prosody
Diff
plugins/mod_http_file_share.lua @ 11398:a1f26d17d70f
mod_http_file_share: Allow credentials via CORS (needed for auth token)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 23 Feb 2021 02:56:49 +0100 |
parent | 11394:420787340339 |
child | 11402:a3be7b3cf1e1 |
line wrap: on
line diff
--- a/plugins/mod_http_file_share.lua Mon Dec 30 09:50:59 2019 +0100 +++ b/plugins/mod_http_file_share.lua Tue Feb 23 02:56:49 2021 +0100 @@ -432,6 +432,9 @@ if not external_base_url then module:provides("http", { streaming_uploads = true; + cors = { + credentials = true; + }; route = { ["PUT /*"] = handle_upload; ["GET /*"] = handle_download;