gnunet-svn
[Top][All Lists]
Advanced

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

[taler-anastasis] branch master updated: handle CORS preflight for /trut


From: gnunet
Subject: [taler-anastasis] branch master updated: handle CORS preflight for /truth and /policy
Date: Mon, 18 Oct 2021 18:24:56 +0200

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

dold pushed a commit to branch master
in repository anastasis.

The following commit(s) were added to refs/heads/master by this push:
     new e3f978d  handle CORS preflight for /truth and /policy
e3f978d is described below

commit e3f978d1b6ad233f0a6ff179b04f575417a41e09
Author: Florian Dold <florian@dold.me>
AuthorDate: Mon Oct 18 18:24:50 2021 +0200

    handle CORS preflight for /truth and /policy
---
 src/backend/anastasis-httpd.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/src/backend/anastasis-httpd.c b/src/backend/anastasis-httpd.c
index 76f1d3e..ba5417b 100644
--- a/src/backend/anastasis-httpd.c
+++ b/src/backend/anastasis-httpd.c
@@ -389,6 +389,11 @@ url_handler (void *cls,
                                      upload_data,
                                      upload_data_size);
     }
+    if (0 == strcmp (method,
+                     MHD_HTTP_METHOD_OPTIONS))
+    {
+      return TALER_MHD_reply_cors_preflight (connection);
+    }
     return TMH_MHD_handler_static_response (&h405,
                                             connection);
   }
@@ -429,6 +434,11 @@ url_handler (void *cls,
                                     upload_data,
                                     upload_data_size);
     }
+    if (0 == strcmp (method,
+                     MHD_HTTP_METHOD_OPTIONS))
+    {
+      return TALER_MHD_reply_cors_preflight (connection);
+    }
     return TMH_MHD_handler_static_response (&h405,
                                             connection);
   }

-- 
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]