mirror of
https://github.com/dalbodeule/chibot-chzzk-bot.git
synced 2025-08-07 21:01:14 +00:00
add Session flows (3x)
- fix CORS
This commit is contained in:
@@ -53,6 +53,7 @@ val server = embeddedServer(Netty, port = 8080, ) {
|
||||
allowMethod(HttpMethod.Delete)
|
||||
allowMethod(HttpMethod.Get)
|
||||
allowHost(dotenv["FRONTEND"] ?: "localhost:3000")
|
||||
allowCredentials = true
|
||||
}
|
||||
install(Sessions) {
|
||||
cookie<UserSession>("user_session", storage = SessionStorageMemory()) {}
|
||||
|
Reference in New Issue
Block a user