From 5b079999bb7ba81e3405862d7108033f13fd1e30 Mon Sep 17 00:00:00 2001 From: Hubert Van De Walle Date: Sun, 12 Apr 2020 15:50:16 +0200 Subject: [PATCH] Add ContentType header to CORS feature --- api/src/features/CorsFeature.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/src/features/CorsFeature.kt b/api/src/features/CorsFeature.kt index 55c4d4e..04484be 100644 --- a/api/src/features/CorsFeature.kt +++ b/api/src/features/CorsFeature.kt @@ -3,9 +3,11 @@ package be.vandewalleh.features import io.ktor.application.Application import io.ktor.application.install import io.ktor.features.CORS +import io.ktor.http.HttpHeaders fun Application.corsFeature() { install(CORS) { anyHost() + header(HttpHeaders.ContentType) } } \ No newline at end of file