From c179195b1883d43f19468320bba96f2443469e8f Mon Sep 17 00:00:00 2001 From: dalbodeule <11470513+dalbodeule@users.noreply.github.com> Date: Thu, 8 Aug 2024 16:22:06 +0900 Subject: [PATCH] add Session flows - fix CORS --- .../src/main/kotlin/space/mori/chzzk_bot/webserver/Main.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 4d0d446..ab3e1b2 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,8 +52,7 @@ val server = embeddedServer(Netty, port = 8080, ) { allowMethod(HttpMethod.Patch) allowMethod(HttpMethod.Delete) allowMethod(HttpMethod.Get) - allowHost("http://localhost:8080") - allowHost(dotenv["FRONTEND"]) + anyHost() } install(Sessions) { cookie("user_session", storage = SessionStorageMemory()) {}