From fa30a132a53196eec1ac731e332a075ba8b93991 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Tue, 19 Oct 2021 17:44:07 +0200 Subject: [PATCH] CORS: expose response headers by default --- src/mhd/mhd_responses.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/mhd/mhd_responses.c b/src/mhd/mhd_responses.c index c993436cd..d93381063 100644 --- a/src/mhd/mhd_responses.c +++ b/src/mhd/mhd_responses.c @@ -268,6 +268,11 @@ TALER_MHD_reply_cors_preflight (struct MHD_Connection *connection) /* Not available as MHD constant yet */ "Access-Control-Allow-Methods", "*")); + GNUNET_break (MHD_YES == + MHD_add_response_header (response, + /* Not available as MHD constant yet */ + "Access-Control-Expose-Headers", + "*")); { MHD_RESULT ret;