exchange

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

commit fbb2fec2e9e448e8af6b8118691698ec0baea616
parent d90b01a9f8eb0870ece10bbdb845ba34db334857
Author: Sebastian <sebasjm@gmail.com>
Date:   Mon,  2 Dec 2024 09:41:43 -0300

add cors header in upload reply

application/x-www-form-urlencoded does not trigger OPTIONS request for CORS so access-control-allow-origin needs to be added in the POST reply, otherwise the request succeed but the browser display an error

Diffstat:
Msrc/exchange/taler-exchange-httpd_kyc-upload.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/src/exchange/taler-exchange-httpd_kyc-upload.c b/src/exchange/taler-exchange-httpd_kyc-upload.c @@ -365,6 +365,7 @@ aml_trigger_callback ( "" ); } + TALER_MHD_add_global_headers (uc->response); MHD_resume_connection (uc->rc->connection); GNUNET_CONTAINER_DLL_remove (uc_head,