From 893e443ee1e28f721f73be18ca37167bce8020fa Mon Sep 17 00:00:00 2001 From: dotasek Date: Mon, 27 May 2024 15:46:53 -0400 Subject: [PATCH] Add post to CORS setup (#179) --- src/jvmMain/kotlin/Module.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/src/jvmMain/kotlin/Module.kt b/src/jvmMain/kotlin/Module.kt index f4ce4e2b..43c0a42a 100644 --- a/src/jvmMain/kotlin/Module.kt +++ b/src/jvmMain/kotlin/Module.kt @@ -67,6 +67,7 @@ fun Application.setup() { allowMethod(HttpMethod.Options) allowMethod(HttpMethod.Get) allowMethod(HttpMethod.Put) + allowMethod(HttpMethod.Post) allowMethod(HttpMethod.Delete) allowMethod(HttpMethod.Patch) allowHeader(HttpHeaders.Authorization)