diff --git a/server/src/main/kotlin/in/procyk/shin/Plugins.kt b/server/src/main/kotlin/in/procyk/shin/Plugins.kt index e416932..9430504 100644 --- a/server/src/main/kotlin/in/procyk/shin/Plugins.kt +++ b/server/src/main/kotlin/in/procyk/shin/Plugins.kt @@ -35,5 +35,8 @@ private fun Application.installCors(dotenv: Dotenv) { install(CORS) { allowHost("${corsHost}:${corsPort}", schemes = listOf(corsScheme)) allowMethod(HttpMethod.Post) + allowHeader(HttpHeaders.ContentType) + allowHeader(HttpHeaders.ContentLength) + allowNonSimpleContentTypes = true } } \ No newline at end of file