From a2b260831271aac4978a4736f64f53cab4634491 Mon Sep 17 00:00:00 2001 From: dalbodeule <11470513+dalbodeule@users.noreply.github.com> Date: Thu, 8 Aug 2024 17:13: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 5a4c203..156a84c 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", schemes = listOf("http", "https")) + allowHost(dotenv["FRONTEND"] ?: "localhost:3000", schemes = listOf("http", "https", "ws", "wss")) allowCredentials = true } install(Sessions) {