summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-01-08 10:39:00 +0100
committerChristian Grothoff <christian@grothoff.org>2020-01-08 10:39:10 +0100
commitea9c15026a264953625472e14a3707f1131c5552 (patch)
treea3f4123bd3a86c426397d2aea2f8d582c8e1211e /src
parent97f71c83a70c8cf0130cadb8b0b0405e2dc059f7 (diff)
downloadexchange-ea9c15026a264953625472e14a3707f1131c5552.tar.gz
exchange-ea9c15026a264953625472e14a3707f1131c5552.tar.bz2
exchange-ea9c15026a264953625472e14a3707f1131c5552.zip
add CORS header globally always (#6029)
Diffstat (limited to 'src')
-rw-r--r--src/mhd/mhd_responses.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mhd/mhd_responses.c b/src/mhd/mhd_responses.c
index 3642e7d54..a8c159300 100644
--- a/src/mhd/mhd_responses.c
+++ b/src/mhd/mhd_responses.c
@@ -69,6 +69,10 @@ TALER_MHD_add_global_headers (struct MHD_Response *response)
MHD_add_response_header (response,
MHD_HTTP_HEADER_CONNECTION,
"close"));
+ GNUNET_break (MHD_YES ==
+ MHD_add_response_header (response,
+ MHD_HTTP_HEADER_ACCESS_CONTROL_ALLOW_ORIGIN,
+ "*"));
}