mirror of
https://github.com/dalbodeule/chibot-chzzk-bot.git
synced 2025-06-09 15:28:21 +00:00
add Session flows (2x)
- fix CORS
This commit is contained in:
parent
caf3965334
commit
9879fafa25
@ -52,7 +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)
|
||||||
allowOrigins { it == dotenv["FRONTEND"] }
|
allowHost(dotenv["FRONTEND"] ?: "localhost:3000")
|
||||||
}
|
}
|
||||||
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