View Issue Details

IDProjectCategoryView StatusLast Update
0010396Talermerchant backendpublic2025-09-12 15:09
Reportersebasjm Assigned ToChristian Grothoff  
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
Product Versiongit (master) 
Target Version1.1Fixed in Version1.1 
Summary0010396: missing cors headers
Descriptioncan't test locally

$ curl 'http://merchant.taler.test/challenge/80-QTB72FANPXE74QJFFBE5V90GHS0XMYD2A6X6PTA1FWJKMZHCN980' -H 'Accept: application/json' -H 'Accept-Language: en-US,en;q=0.9,es;q=0.8' -H 'Connection: keep-alive' -H 'Content-Type: application/json' -H 'Origin: http://localhost:8080' -H 'Referer: http://localhost:8080/' -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/139.0.0.0 Safari/537.36' --data-raw '{}' -v

* Host merchant.taler.test:80 was resolved.
* IPv6: (none)
* IPv4: 127.0.0.1
* Trying 127.0.0.1:80...
* Connected to merchant.taler.test (127.0.0.1) port 80
> POST /challenge/80-QTB72FANPXE74QJFFBE5V90GHS0XMYD2A6X6PTA1FWJKMZHCN980 HTTP/1.1
> Host: merchant.taler.test
> Accept: application/json
> Accept-Language: en-US,en;q=0.9,es;q=0.8
> Connection: keep-alive
> Content-Type: application/json
> Origin: http://localhost:8080
> Referer: http://localhost:8080/
> User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/139.0.0.0 Safari/537.36
> Content-Length: 2
>
* upload completely sent off: 2 bytes
< HTTP/1.1 204 No Content
< date: Fri, 12 Sep 2025 12:57:45 GMT
< Connection: keep-alive
< Keep-Alive: timeout=5
<
* Connection #0 to host merchant.taler.test left intact
TagsNo tags attached.

Activities

sebasjm

2025-09-12 15:01

developer   ~0025896

as a workaround i tried to add the header in my nginx proxy but this also create a problems with the /challenge/xxx/confirm endpoint which correctly add the header, so my simple workaround doesn't work

Christian Grothoff

2025-09-12 15:09

manager   ~0025897

Fix committed to master branch.

Related Changesets

merchant: master b30be5ae

2025-09-12 17:09

Christian Grothoff


Details Diff
fix 0010396 Affected Issues
0010396
mod - src/backend/taler-merchant-httpd_config.c Diff File
mod - src/backend/taler-merchant-httpd_post-challenge-ID.c Diff File

Issue History

Date Modified Username Field Change
2025-09-12 14:59 sebasjm New Issue
2025-09-12 14:59 sebasjm Status new => assigned
2025-09-12 14:59 sebasjm Assigned To => Christian Grothoff
2025-09-12 15:01 sebasjm Note Added: 0025896
2025-09-12 15:09 Christian Grothoff Changeset attached => merchant master b30be5ae
2025-09-12 15:09 Christian Grothoff Note Added: 0025897
2025-09-12 15:09 Christian Grothoff Status assigned => resolved
2025-09-12 15:09 Christian Grothoff Resolution open => fixed
2025-09-12 15:09 Christian Grothoff Fixed in Version => 1.1