exchange

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

commit 41dd9570b7ad0e43b50a0033d3abf91df7905904
parent f4cbf8fc608adbc813f91c4f07daf5e9112214a1
Author: Florian Dold <florian@dold.me>
Date:   Wed, 26 Mar 2025 19:32:42 +0100

add CORS headers when returning async response in AML decision POST handler

Diffstat:
Msrc/exchange/taler-exchange-httpd_aml-decision.c | 7++++---
1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/exchange/taler-exchange-httpd_aml-decision.c b/src/exchange/taler-exchange-httpd_aml-decision.c @@ -153,6 +153,7 @@ aml_trigger_callback ( adc->response = MHD_create_response_from_buffer_static ( 0, ""); + TALER_MHD_add_global_headers (adc->response); } GNUNET_assert (NULL != adc->response); @@ -223,11 +224,11 @@ TEH_handler_post_aml_decision ( &decision_time), GNUNET_JSON_spec_mark_optional ( GNUNET_JSON_spec_timestamp ("attributes_expiration", - &attributes_expiration), + &attributes_expiration), NULL), GNUNET_JSON_spec_mark_optional ( GNUNET_JSON_spec_object_const ("attributes", - &attributes), + &attributes), NULL), GNUNET_JSON_spec_end () }; @@ -359,7 +360,7 @@ TEH_handler_post_aml_decision ( if (NULL != attributes) { TALER_json_hash (attributes, - &h_attr); + &h_attr); TALER_CRYPTO_kyc_attributes_encrypt (&TEH_attribute_key, attributes, &ea,