mirror of
https://github.com/dalbodeule/chibot-chzzk-bot.git
synced 2025-06-09 07:18:22 +00:00
commit
70ce830c94
@ -52,8 +52,7 @@ val server = embeddedServer(Netty, port = 8080, ) {
|
|||||||
allowMethod(HttpMethod.Patch)
|
allowMethod(HttpMethod.Patch)
|
||||||
allowMethod(HttpMethod.Delete)
|
allowMethod(HttpMethod.Delete)
|
||||||
allowMethod(HttpMethod.Get)
|
allowMethod(HttpMethod.Get)
|
||||||
allowHost("http://localhost:8080")
|
anyHost()
|
||||||
allowHost(dotenv["FRONTEND"])
|
|
||||||
}
|
}
|
||||||
install(Sessions) {
|
install(Sessions) {
|
||||||
cookie<UserSession>("user_session", storage = SessionStorageMemory()) {}
|
cookie<UserSession>("user_session", storage = SessionStorageMemory()) {}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user