exchange

Base system with REST service to issue digital coins, run by the payment service provider
Log | Files | Refs | Submodules | README | LICENSE

commit d20b83972e8386a8f4b0cee161685fa6e575c6c3
parent 07a332193f2715c31d2b684f3c0260511a16b52e
Author: Florian Dold <florian@dold.me>
Date:   Tue,  4 Feb 2025 21:19:54 +0100

support preflight request for /kyc-upload

Diffstat:
Msrc/exchange/taler-exchange-httpd.c | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

diff --git a/src/exchange/taler-exchange-httpd.c b/src/exchange/taler-exchange-httpd.c @@ -2127,10 +2127,17 @@ handle_mhd_request (void *cls, return ret; } } + /* FIXME: Why is this handled separately? Fix or justify! */ if (0 == strncmp (url, "/kyc-upload/", strlen ("/kyc-upload/"))) { + if (0 == strcasecmp (method, + MHD_HTTP_METHOD_OPTIONS)) + { + GNUNET_async_scope_restore (&old_scope); + return TALER_MHD_reply_cors_preflight (connection); + } if (0 != strcasecmp (method, MHD_HTTP_METHOD_POST)) {