From 8e6a8a106b1cfb167f51901baf8cb4946a34780d Mon Sep 17 00:00:00 2001 From: dalbodeule <11470513+dalbodeule@users.noreply.github.com> Date: Thu, 8 Aug 2024 17:10:52 +0900 Subject: [PATCH] add Session flows (4x) - fix CORS --- .../src/main/kotlin/space/mori/chzzk_bot/webserver/Main.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 46f95a6..5a4c203 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 @@ -52,7 +52,7 @@ val server = embeddedServer(Netty, port = 8080, ) { allowMethod(HttpMethod.Patch) allowMethod(HttpMethod.Delete) allowMethod(HttpMethod.Get) - allowHost(dotenv["FRONTEND"] ?: "localhost:3000") + allowHost(dotenv["FRONTEND"] ?: "localhost:3000", schemes = listOf("http", "https")) allowCredentials = true } install(Sessions) {