From ea9c15026a264953625472e14a3707f1131c5552 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 8 Jan 2020 10:39:00 +0100 Subject: add CORS header globally always (#6029) --- src/mhd/mhd_responses.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/mhd') 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, + "*")); } -- cgit v1.2.3