mirror of
https://github.com/bjc/prosody.git
synced 2025-04-04 21:57:45 +03:00
mod_http_file_share: Allow credentials via CORS (needed for auth token)
This commit is contained in:
parent
d65d38846d
commit
b01915e81c
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue