# HG changeset patch # User Matthew Wild # Date 1542543302 0 # Node ID 683365d370d82e1554273e3f89f4c9d2e3feb712 # Parent 972832108c789db81cc276f8f23458afec9aac26 mod_http_upload: Also add CORS headers in response to PUT diff -r 972832108c78 -r 683365d370d8 mod_http_upload/mod_http_upload.lua --- a/mod_http_upload/mod_http_upload.lua Sun Nov 18 12:06:13 2018 +0000 +++ b/mod_http_upload/mod_http_upload.lua Sun Nov 18 12:15:02 2018 +0000 @@ -231,6 +231,8 @@ -- http service local function upload_data(event, path) + set_cross_domain_headers(event.response); + local uploader = pending_slots[path]; if not uploader then module:log("warn", "Attempt to upload to unknown slot %q", path);