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
6a7f57ac34
commit
caf3965334
@ -52,7 +52,7 @@ val server = embeddedServer(Netty, port = 8080, ) {
|
||||
allowMethod(HttpMethod.Patch)
|
||||
allowMethod(HttpMethod.Delete)
|
||||
allowMethod(HttpMethod.Get)
|
||||
anyHost()
|
||||
allowOrigins { it == dotenv["FRONTEND"] }
|
||||
}
|
||||
install(Sessions) {
|
||||
cookie<UserSession>("user_session", storage = SessionStorageMemory()) {}
|
||||
|
Loading…
x
Reference in New Issue
Block a user