diff --git a/src/main/kotlin/io/musicorum/api/plugins/HTTP.kt b/src/main/kotlin/io/musicorum/api/plugins/HTTP.kt index e9ea2ad..9451684 100644 --- a/src/main/kotlin/io/musicorum/api/plugins/HTTP.kt +++ b/src/main/kotlin/io/musicorum/api/plugins/HTTP.kt @@ -11,7 +11,12 @@ fun Application.configureHTTP() { allowMethod(HttpMethod.Delete) allowMethod(HttpMethod.Patch) allowHeader(HttpHeaders.Authorization) + allowHeader(HttpHeaders.ContentType) allowHeader("*") + + allowCredentials = true + maxAgeInSeconds = 3600 + anyHost() } }