diff --git a/src/main/kotlin/fr/shikkanime/plugins/HTTP.kt b/src/main/kotlin/fr/shikkanime/plugins/HTTP.kt index 0674a112..b9f2bd49 100644 --- a/src/main/kotlin/fr/shikkanime/plugins/HTTP.kt +++ b/src/main/kotlin/fr/shikkanime/plugins/HTTP.kt @@ -23,11 +23,10 @@ fun Application.configureHTTP() { } } install(CORS) { - allowMethod(HttpMethod.Options) - allowMethod(HttpMethod.Put) - allowMethod(HttpMethod.Delete) - allowMethod(HttpMethod.Patch) + HttpMethod.DefaultMethods.forEach { allowMethod(it) } + allowCredentials = true allowHeader(HttpHeaders.Authorization) + anyHost() } install(StatusPages) { exception { call, cause ->