diff --git a/backend/services/mail/mail-service/src/main/kotlin/at/mocode/mail/service/api/MailController.kt b/backend/services/mail/mail-service/src/main/kotlin/at/mocode/mail/service/api/MailController.kt index 6e52b7e4..5a6e7138 100644 --- a/backend/services/mail/mail-service/src/main/kotlin/at/mocode/mail/service/api/MailController.kt +++ b/backend/services/mail/mail-service/src/main/kotlin/at/mocode/mail/service/api/MailController.kt @@ -39,7 +39,7 @@ data class NennungRequest( @OptIn(ExperimentalUuidApi::class) @RestController @RequestMapping("/api/mail") -@CrossOrigin(origins = ["http://localhost:8080", "https://nennung.mo-code.at"]) // Für Wasm-Web-App (Compose HTML/Wasm) +@CrossOrigin(origins = ["http://localhost:8080", "https://nennung.mo-code.at", "https://app.mo-code.at"]) // Für Wasm-Web-App (Compose HTML/Wasm) class MailController( private val nennungRepository: NennungRepository, private val mailSender: JavaMailSender diff --git a/dc-planb.yaml b/dc-planb.yaml index df8f89f1..b09c3711 100644 --- a/dc-planb.yaml +++ b/dc-planb.yaml @@ -9,7 +9,7 @@ services: environment: # Diese Variablen werden vom Web-Container verwendet, um die Ziel-URLs in die index.html zu injizieren API_BASE_URL: ${API_BASE_URL:-https://api.mo-code.at} - MAIL_SERVICE_URL: ${MAIL_SERVICE_URL:-https://api.mo-code.at/mail} + MAIL_SERVICE_URL: ${MAIL_SERVICE_URL:-https://api.mo-code.at} ports: - "${WEB_APP_PORT:-4000:4000}" networks: [meldestelle-network] diff --git a/docs/03_Journal/2026-04-23_Plan-B-Formulare.md b/docs/03_Journal/2026-04-23_Plan-B-Formulare.md index e1c8910f..c6800f67 100644 --- a/docs/03_Journal/2026-04-23_Plan-B-Formulare.md +++ b/docs/03_Journal/2026-04-23_Plan-B-Formulare.md @@ -29,3 +29,10 @@ Erstellung von zwei hoch-optimierten Web-Formularen für die Turniere in Neumark Die "Hallo Du!" Test-UI wurde durch produktive, fachlich korrekte Formulare ersetzt. Sobald ein Reiter auf "Jetzt nennen" klickt, wird der E-Mail-Workflow ausgelöst. **Status:** Bereit für den Live-Einsatz am Wochenende. 🚀 + +### 2026-04-23 08:30 - Version 10: HTTPS & CORS FIX +- **Problem**: Mixed Content Fehler (HTTPS -> HTTP) und CORS-Blockade auf `app.mo-code.at`. +- **Lösung**: + - `MailController.kt`: Whitelist für `https://app.mo-code.at` in `@CrossOrigin` hinzugefügt. + - `dc-planb.yaml`: API-URLs auf `https://api.mo-code.at` umgestellt. + - UI-Marker auf `v2026-04-23.10 - HTTPS FIX` aktualisiert. diff --git a/frontend/shells/meldestelle-web/src/wasmJsMain/kotlin/at/mocode/frontend/shell/web/WebMainScreen.kt b/frontend/shells/meldestelle-web/src/wasmJsMain/kotlin/at/mocode/frontend/shell/web/WebMainScreen.kt index d8312d43..e6228e69 100644 --- a/frontend/shells/meldestelle-web/src/wasmJsMain/kotlin/at/mocode/frontend/shell/web/WebMainScreen.kt +++ b/frontend/shells/meldestelle-web/src/wasmJsMain/kotlin/at/mocode/frontend/shell/web/WebMainScreen.kt @@ -122,7 +122,7 @@ fun MainAppContent() { // Dezentraler Versions-Marker in der unteren rechten Ecke Box(modifier = Modifier.fillMaxSize().padding(8.dp), contentAlignment = Alignment.BottomEnd) { Text( - text = "v2026-04-23.9", + text = "v2026-04-23.10 - HTTPS FIX", style = MaterialTheme.typography.labelSmall, color = Color.LightGray.copy(alpha = 0.5f) )