summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2020-05-01 14:02:15 +0530
committerFlorian Dold <florian.dold@gmail.com>2020-05-01 14:02:29 +0530
commit4583ce4ef3e72edf001fac3ba3290dfc547dd785 (patch)
treeb2f5f43f882cf1053f7a113e37143bf2ceef4f2f
parente2e8d62574060e43036ba9cf73e5acef52fdb049 (diff)
downloadexchange-4583ce4ef3e72edf001fac3ba3290dfc547dd785.tar.gz
exchange-4583ce4ef3e72edf001fac3ba3290dfc547dd785.tar.bz2
exchange-4583ce4ef3e72edf001fac3ba3290dfc547dd785.zip
/terms also must have CORS headers
-rw-r--r--src/mhd/mhd_legal.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mhd/mhd_legal.c b/src/mhd/mhd_legal.c
index a46b7279..19a21475 100644
--- a/src/mhd/mhd_legal.c
+++ b/src/mhd/mhd_legal.c
@@ -185,6 +185,7 @@ TALER_MHD_reply_legal (struct MHD_Connection *conn,
resp = MHD_create_response_from_buffer (0,
NULL,
MHD_RESPMEM_PERSISTENT);
+ TALER_MHD_add_global_headers (resp);
ret = MHD_queue_response (conn,
MHD_HTTP_NOT_MODIFIED,
resp);
@@ -288,6 +289,7 @@ TALER_MHD_reply_legal (struct MHD_Connection *conn,
(void *) t->terms,
MHD_RESPMEM_PERSISTENT);
}
+ TALER_MHD_add_global_headers (resp);
if (NULL != legal)
GNUNET_break (MHD_YES ==
MHD_add_response_header (resp,