diff --git a/src/main/kotlin/be/vandeas/plugins/HTTP.kt b/src/main/kotlin/be/vandeas/plugins/HTTP.kt index 080889b..5104531 100644 --- a/src/main/kotlin/be/vandeas/plugins/HTTP.kt +++ b/src/main/kotlin/be/vandeas/plugins/HTTP.kt @@ -13,6 +13,9 @@ fun Application.configureHTTP() { allowMethod(HttpMethod.Put) allowMethod(HttpMethod.Get) allowHeader(HttpHeaders.Authorization) - anyHost() // @TODO: Don't do this in production if possible. Try to limit it. + allowHeader(HttpHeaders.ContentType) + allowHeader(HttpHeaders.Accept) + allowHeader(HttpHeaders.AccessControlAllowOrigin) + anyHost() } }