diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-01-08 10:39:00 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-01-08 10:39:10 +0100 |
commit | ea9c15026a264953625472e14a3707f1131c5552 (patch) | |
tree | a3f4123bd3a86c426397d2aea2f8d582c8e1211e /src/mhd | |
parent | 97f71c83a70c8cf0130cadb8b0b0405e2dc059f7 (diff) | |
download | exchange-ea9c15026a264953625472e14a3707f1131c5552.tar.xz |
add CORS header globally always (#6029)
Diffstat (limited to 'src/mhd')
-rw-r--r-- | src/mhd/mhd_responses.c | 4 |
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, + "*")); } |