Comparison

plugins/mod_http_file_share.lua @ 11857:e080d6aa0b3b

mod_http_file_share: Allow 'Authorization' header via CORS (thanks kawaii) Can't find anything saying anything on whether this is needed or not. kawaii reported that both Chrome and Firefox complained unless the header was added to the list of allowed headers.
author Kim Alvefur <zash@zash.se>
date Wed, 20 Oct 2021 23:06:07 +0200
parent 11853:ae5ac9830add
child 11864:fceebfb28d86
comparison
equal deleted inserted replaced
11856:14a679588b7b 11857:e080d6aa0b3b
582 if not external_base_url then 582 if not external_base_url then
583 module:provides("http", { 583 module:provides("http", {
584 streaming_uploads = true; 584 streaming_uploads = true;
585 cors = { 585 cors = {
586 credentials = true; 586 credentials = true;
587 headers = {
588 Authorization = true;
589 };
587 }; 590 };
588 route = { 591 route = {
589 ["PUT /*"] = handle_upload; 592 ["PUT /*"] = handle_upload;
590 ["GET /*"] = handle_download; 593 ["GET /*"] = handle_download;
591 ["GET /"] = function (event) 594 ["GET /"] = function (event)