diff --git a/module-server/src/main/kotlin/de/twomartens/wahlrecht/configuration/WebConfiguration.kt b/module-server/src/main/kotlin/de/twomartens/wahlrecht/configuration/WebConfiguration.kt index f796bc3..15b0cbf 100644 --- a/module-server/src/main/kotlin/de/twomartens/wahlrecht/configuration/WebConfiguration.kt +++ b/module-server/src/main/kotlin/de/twomartens/wahlrecht/configuration/WebConfiguration.kt @@ -16,8 +16,8 @@ open class WebConfiguration(private val headerInterceptorRest: HeaderInterceptor override fun addCorsMappings(registry: CorsRegistry) { val registration = registry.addMapping("/**") registration.allowedMethods( - HttpMethod.GET.name(), HttpMethod.POST.name(), - HttpMethod.PUT.name(), HttpMethod.OPTIONS.name() + HttpMethod.GET.name(), HttpMethod.POST.name(), + HttpMethod.PUT.name(), HttpMethod.HEAD.name() ) registration.allowCredentials(true) registration.allowedOrigins(