From 81c62d6c55a9f6783923774f7b0da3c90a3a4f0d Mon Sep 17 00:00:00 2001 From: dalbodeule <11470513+dalbodeule@users.noreply.github.com> Date: Thu, 8 Aug 2024 20:33:27 +0900 Subject: [PATCH] fix User.kt(3x) - fun enable fix --- webserver/src/main/kotlin/space/mori/chzzk_bot/webserver/Main.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/webserver/src/main/kotlin/space/mori/chzzk_bot/webserver/Main.kt b/webserver/src/main/kotlin/space/mori/chzzk_bot/webserver/Main.kt index 764b428..41d9e83 100644 --- a/webserver/src/main/kotlin/space/mori/chzzk_bot/webserver/Main.kt +++ b/webserver/src/main/kotlin/space/mori/chzzk_bot/webserver/Main.kt @@ -124,6 +124,7 @@ val server = embeddedServer(Netty, port = 8080, ) { allowMethod(HttpMethod.Options) allowMethod(HttpMethod.Put) allowMethod(HttpMethod.Patch) + allowMethod(HttpMethod.Post) allowMethod(HttpMethod.Delete) allowMethod(HttpMethod.Get) allowHost(dotenv["FRONTEND"] ?: "localhost:3000", schemes=listOf("https"))