From e0f7388f319932e1334e21fdbdb82a8650edb38c Mon Sep 17 00:00:00 2001 From: ms Date: Thu, 3 Feb 2022 21:52:26 +0100 Subject: CORS --- sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt b/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt index d4f6eef5..bebddb4c 100644 --- a/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt +++ b/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt @@ -418,6 +418,13 @@ val sandboxApp: Application.() -> Unit = { install(CallLogging) { this.level = org.slf4j.event.Level.DEBUG } + install(CORS) { + anyHost() + header(HttpHeaders.Authorization) + header(HttpHeaders.ContentType) + method(HttpMethod.Options) + allowCredentials = true + } install(Authentication) { // Web-based authentication for Bank customers. form("auth-form") { -- cgit v1.2.3