summaryrefslogtreecommitdiff
path: root/src/mhd/mhd_responses.c
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2021-02-10 16:32:49 -0300
committerSebastian <sebasjm@gmail.com>2021-02-10 16:32:49 -0300
commit7adf9f170fbc314cc699c347f4c338be045c385f (patch)
tree6cc4c8a50773e85fd834368ab8fa690f4cf58dd1 /src/mhd/mhd_responses.c
parent9eaa2a24e6e36ff3b25c89a8c1087ddb338221bd (diff)
downloadexchange-7adf9f170fbc314cc699c347f4c338be045c385f.tar.gz
exchange-7adf9f170fbc314cc699c347f4c338be045c385f.tar.bz2
exchange-7adf9f170fbc314cc699c347f4c338be045c385f.zip
add allow-methods * for cors preflight
Diffstat (limited to 'src/mhd/mhd_responses.c')
-rw-r--r--src/mhd/mhd_responses.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mhd/mhd_responses.c b/src/mhd/mhd_responses.c
index 9e6986a37..90a8d19f4 100644
--- a/src/mhd/mhd_responses.c
+++ b/src/mhd/mhd_responses.c
@@ -289,6 +289,11 @@ TALER_MHD_reply_cors_preflight (struct MHD_Connection *connection)
/* Not available as MHD constant yet */
"Access-Control-Allow-Headers",
"*"));
+ GNUNET_break (MHD_YES ==
+ MHD_add_response_header (response,
+ /* Not available as MHD constant yet */
+ "Access-Control-Allow-Methods",
+ "*"));
{
MHD_RESULT ret;