diff options
author | Sebastian <sebasjm@gmail.com> | 2024-12-02 09:41:43 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2024-12-02 09:41:43 -0300 |
commit | fbb2fec2e9e448e8af6b8118691698ec0baea616 (patch) | |
tree | c48f51ceb2552cb9216f93d11631a64e334bf11e | |
parent | d90b01a9f8eb0870ece10bbdb845ba34db334857 (diff) |
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
-rw-r--r-- | src/exchange/taler-exchange-httpd_kyc-upload.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/exchange/taler-exchange-httpd_kyc-upload.c b/src/exchange/taler-exchange-httpd_kyc-upload.c index f0d9cec76..583b9c38c 100644 --- 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, |