gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-exchange] branch master updated: add another CORS header to allow


From: gnunet
Subject: [taler-exchange] branch master updated: add another CORS header to allow client to send any headers
Date: Wed, 15 Jan 2020 16:05:13 +0100

This is an automated email from the git hooks/post-receive script.

dold pushed a commit to branch master
in repository exchange.

The following commit(s) were added to refs/heads/master by this push:
     new fccde251 add another CORS header to allow client to send any headers
fccde251 is described below

commit fccde2518368b3e7109f87c3f04e3197d20c17e1
Author: Florian Dold <address@hidden>
AuthorDate: Wed Jan 15 16:05:00 2020 +0100

    add another CORS header to allow client to send any headers
---
 src/mhd/mhd_responses.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/mhd/mhd_responses.c b/src/mhd/mhd_responses.c
index d26f533e..d54945c6 100644
--- a/src/mhd/mhd_responses.c
+++ b/src/mhd/mhd_responses.c
@@ -284,6 +284,11 @@ TALER_MHD_reply_cors_preflight (struct MHD_Connection 
*connection)
   /* This adds the Access-Control-Allow-Origin header.
    * All endpoints of the exchange allow CORS. */
   TALER_MHD_add_global_headers (resp);
+  GNUNET_break (MHD_YES ==
+                MHD_add_response_header (resp,
+                                         // Not available as MHD constant yet
+                                         "Access-Control-Allow-Headers",
+                                         "*"));
   GNUNET_assert (MHD_YES == MHD_queue_response (connection, 
MHD_HTTP_NO_CONTENT,
                                                 resp));
   return MHD_YES;

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]