summaryrefslogtreecommitdiff
path: root/src/mhd/mhd_responses.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-11-17 11:26:19 +0100
committerChristian Grothoff <christian@grothoff.org>2021-11-17 11:26:19 +0100
commit6b8c75788710b64eaf1323c9cd95a428c129012d (patch)
tree8633a07a1293c661b9a11d49cc3850404e0055cd /src/mhd/mhd_responses.c
parent7332403bf0d72c9b1bb17348ef96b91615bcf525 (diff)
downloadexchange-6b8c75788710b64eaf1323c9cd95a428c129012d.tar.gz
exchange-6b8c75788710b64eaf1323c9cd95a428c129012d.tar.bz2
exchange-6b8c75788710b64eaf1323c9cd95a428c129012d.zip
towards merging with master
Diffstat (limited to 'src/mhd/mhd_responses.c')
-rw-r--r--src/mhd/mhd_responses.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/mhd/mhd_responses.c b/src/mhd/mhd_responses.c
index d93381063..5b99dd128 100644
--- a/src/mhd/mhd_responses.c
+++ b/src/mhd/mhd_responses.c
@@ -53,6 +53,11 @@ TALER_MHD_add_global_headers (struct MHD_Response *response)
MHD_add_response_header (response,
MHD_HTTP_HEADER_ACCESS_CONTROL_ALLOW_ORIGIN,
"*"));
+ GNUNET_break (MHD_YES ==
+ MHD_add_response_header (response,
+ /* Not available as MHD constant yet */
+ "Access-Control-Expose-Headers",
+ "*"));
}
@@ -268,12 +273,6 @@ 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;