Himanshu Singh
06/26/2021, 11:26 AMException in thread "main" io.ktor.application.DuplicateApplicationFeatureException: Conflicting application feature is already installed with the same key as `CORS`
And the code looks like:
fun main() {
embeddedServer(Netty, port = 8081, host = "0.0.0.0") {
configureHTTP()
configureOauth()
configureRoutingAndSerialization()
configureStatusPages()
}.start(wait = true)
}
The weird part is:
The first feature which is inside the blocks always throws the error. In this case is HTTP but if I take Oauth to first position it will throw exception of Authentication
Aleksei Tirman [JB]
06/26/2021, 7:54 PM