From e50e769e222d883b4a1e74973e7999ac6f9133b6 Mon Sep 17 00:00:00 2001 From: Jim Martens Date: Wed, 16 Aug 2023 12:52:17 +0200 Subject: [PATCH] Added production domain as allowed origin --- .../twomartens/wahlrecht/configuration/WebConfiguration.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 c01b255..f796bc3 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 @@ -20,6 +20,9 @@ open class WebConfiguration(private val headerInterceptorRest: HeaderInterceptor HttpMethod.PUT.name(), HttpMethod.OPTIONS.name() ) registration.allowCredentials(true) - registration.allowedOrigins("http://localhost:4200") + registration.allowedOrigins( + "http://localhost:4200", + "https://wahlrecht.2martens.de" + ) } }