add Session flows (4x)

- fix CORS
This commit is contained in:
dalbodeule 2024-08-08 17:13:52 +09:00
parent 8e6a8a106b
commit a2b2608312
No known key found for this signature in database
GPG Key ID: EFA860D069C9FA65

View File

@ -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)
allowHost(dotenv["FRONTEND"] ?: "localhost:3000", schemes = listOf("http", "https")) allowHost(dotenv["FRONTEND"] ?: "localhost:3000", schemes = listOf("http", "https", "ws", "wss"))
allowCredentials = true allowCredentials = true
} }
install(Sessions) { install(Sessions) {