Merge pull request #48 from dalbodeule/develop

add Session flows
This commit is contained in:
JinU Choi 2024-08-08 16:23:45 +09:00 committed by GitHub
commit 70ce830c94
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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<UserSession>("user_session", storage = SessionStorageMemory()) {}