gnunet-svn
[Top][All Lists]
Advanced

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

[taler-exchange] branch master updated: add Access-Control-Expose-Header


From: gnunet
Subject: [taler-exchange] branch master updated: add Access-Control-Expose-Headers to all responses, not just preflight
Date: Wed, 03 Nov 2021 17:57:07 +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 b338ce6f add Access-Control-Expose-Headers to all responses, not just 
preflight
b338ce6f is described below

commit b338ce6f88a6f34a663ef55b740086ed4272362b
Author: Florian Dold <florian@dold.me>
AuthorDate: Wed Nov 3 17:57:01 2021 +0100

    add Access-Control-Expose-Headers to all responses, not just preflight
---
 src/mhd/mhd_responses.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/mhd/mhd_responses.c b/src/mhd/mhd_responses.c
index d9338106..1e0fd690 100644
--- a/src/mhd/mhd_responses.c
+++ b/src/mhd/mhd_responses.c
@@ -53,6 +53,12 @@ TALER_MHD_add_global_headers (struct MHD_Response *response)
                 MHD_add_response_header (response,
                                          
MHD_HTTP_HEADER_ACCESS_CONTROL_ALLOW_ORIGIN,
                                          "*"));
+  GNUNET_break (MHD_YES ==
+                MHD_add_response_header (response,
+                                         /* Not available as MHD constant yet 
*/
+                                         "Access-Control-Expose-Headers",
+                                         "*"));
+
 }
 
 
@@ -268,12 +274,6 @@ TALER_MHD_reply_cors_preflight (struct MHD_Connection 
*connection)
                                          /* Not available as MHD constant yet 
*/
                                          "Access-Control-Allow-Methods",
                                          "*"));
-  GNUNET_break (MHD_YES ==
-                MHD_add_response_header (response,
-                                         /* Not available as MHD constant yet 
*/
-                                         "Access-Control-Expose-Headers",
-                                         "*"));
-
   {
     MHD_RESULT ret;
 

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

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