commit 7851f8967d12935f1f2e16f1cc27822f33c0d9ba
parent 4ca04c7cf40c5c9a4fdad6c4987efdd62a6cbfee
Author: Antoine A <>
Date: Thu, 9 Oct 2025 17:33:46 +0200
common: fix CORS
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/common/src/main/kotlin/api/server.kt b/common/src/main/kotlin/api/server.kt
@@ -65,6 +65,7 @@ fun talerPlugin(logger: Logger): ApplicationPlugin<Unit> {
onCall { call ->
// Handle cors preflight
if (call.request.httpMethod == HttpMethod.Options) {
+ call.response.header(HttpHeaders.AccessControlAllowOrigin, "*")
call.response.header(HttpHeaders.AccessControlAllowHeaders, "*")
call.response.header(HttpHeaders.AccessControlAllowMethods, "*")
call.respond(HttpStatusCode.NoContent)