summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2020-01-15 16:05:00 +0100
committerFlorian Dold <florian.dold@gmail.com>2020-01-15 16:05:09 +0100
commitfccde2518368b3e7109f87c3f04e3197d20c17e1 (patch)
tree196a6f2ed2f259b39e79ab3e190bc4a42365139a /src
parente5078fcfe80acc7898b9e6889662d599a62ed9a5 (diff)
downloadexchange-fccde2518368b3e7109f87c3f04e3197d20c17e1.tar.gz
exchange-fccde2518368b3e7109f87c3f04e3197d20c17e1.tar.bz2
exchange-fccde2518368b3e7109f87c3f04e3197d20c17e1.zip
add another CORS header to allow client to send any headers
Diffstat (limited to 'src')
-rw-r--r--src/mhd/mhd_responses.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mhd/mhd_responses.c b/src/mhd/mhd_responses.c
index d26f533e..d54945c6 100644
--- a/src/mhd/mhd_responses.c
+++ b/src/mhd/mhd_responses.c
@@ -284,6 +284,11 @@ TALER_MHD_reply_cors_preflight (struct MHD_Connection *connection)
/* This adds the Access-Control-Allow-Origin header.
* All endpoints of the exchange allow CORS. */
TALER_MHD_add_global_headers (resp);
+ GNUNET_break (MHD_YES ==
+ MHD_add_response_header (resp,
+ // Not available as MHD constant yet
+ "Access-Control-Allow-Headers",
+ "*"));
GNUNET_assert (MHD_YES == MHD_queue_response (connection, MHD_HTTP_NO_CONTENT,
resp));
return MHD_YES;