Changeset

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
parents 11397:27a22a1f141c
children 11399:d5d895313be2
files plugins/mod_http_file_share.lua
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
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;