add allow-methods * for cors preflight

This commit is contained in:
Sebastian 2021-02-10 16:32:49 -03:00
parent 9eaa2a24e6
commit 7adf9f170f
No known key found for this signature in database
GPG Key ID: BE4FF68352439FC1

View File

@ -289,6 +289,11 @@ TALER_MHD_reply_cors_preflight (struct MHD_Connection *connection)
/* Not available as MHD constant yet */ /* Not available as MHD constant yet */
"Access-Control-Allow-Headers", "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; MHD_RESULT ret;