# HG changeset patch # User Kim Alvefur # Date 1614045409 -3600 # Node ID a1f26d17d70f15bd1934e1f02216b0be3c2d605f # Parent 27a22a1f141c08046f93d7ddfbacbe13db713757 mod_http_file_share: Allow credentials via CORS (needed for auth token) diff -r 27a22a1f141c -r a1f26d17d70f plugins/mod_http_file_share.lua --- 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;