mirror of
https://github.com/dalbodeule/chibot-chzzk-bot.git
synced 2025-06-09 07:18:22 +00:00
add Session flows
- fix CORS
This commit is contained in:
parent
b864fc262b
commit
c179195b18
@ -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()) {}
|
||||
|
Loading…
x
Reference in New Issue
Block a user