gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libeufin] branch master updated: CORS


From: gnunet
Subject: [libeufin] branch master updated: CORS
Date: Thu, 03 Feb 2022 21:52:51 +0100

This is an automated email from the git hooks/post-receive script.

ms pushed a commit to branch master
in repository libeufin.

The following commit(s) were added to refs/heads/master by this push:
     new e0f7388f CORS
e0f7388f is described below

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

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

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]