libeufin

Integration and sandbox testing for FinTech APIs and data formats
Log | Files | Refs | Submodules | README | LICENSE

commit e0f7388f319932e1334e21fdbdb82a8650edb38c
parent d87965f2b3166a5a627e0ac4daa9ea70c6cc5c1c
Author: ms <ms@taler.net>
Date:   Thu,  3 Feb 2022 21:52:26 +0100

CORS

Diffstat:
Msandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

diff --git 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") {