diff options
-rw-r--r-- | sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt | 7 |
1 files 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 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") { |