### fix: behebe HTTPS- und CORS-Probleme
All checks were successful
Build and Publish Docker Images / build-and-push (., backend/services/mail/Dockerfile, mail-service, mail-service) (push) Successful in 5m51s
Build and Publish Docker Images / build-and-push (., config/docker/caddy/web-app/Dockerfile, web-app, web-app) (push) Successful in 4m5s

- **MailController:** Erweitere `@CrossOrigin`-Whitelist um `https://app.mo-code.at`.
- **dc-planb.yaml:** Passe API-URLs auf HTTPS an.
- **WebMainScreen:** Aktualisiere UI-Versionsmarker auf `v2026-04-23.10 - HTTPS FIX`.
This commit is contained in:
Stefan Mogeritsch 2026-04-23 08:31:07 +02:00
parent dbbca96c69
commit 76e6cebd90
4 changed files with 10 additions and 3 deletions

View File

@ -39,7 +39,7 @@ data class NennungRequest(
@OptIn(ExperimentalUuidApi::class) @OptIn(ExperimentalUuidApi::class)
@RestController @RestController
@RequestMapping("/api/mail") @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( class MailController(
private val nennungRepository: NennungRepository, private val nennungRepository: NennungRepository,
private val mailSender: JavaMailSender private val mailSender: JavaMailSender

View File

@ -9,7 +9,7 @@ services:
environment: environment:
# Diese Variablen werden vom Web-Container verwendet, um die Ziel-URLs in die index.html zu injizieren # 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} 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: ports:
- "${WEB_APP_PORT:-4000:4000}" - "${WEB_APP_PORT:-4000:4000}"
networks: [meldestelle-network] networks: [meldestelle-network]

View File

@ -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. 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. 🚀 **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.

View File

@ -122,7 +122,7 @@ fun MainAppContent() {
// Dezentraler Versions-Marker in der unteren rechten Ecke // Dezentraler Versions-Marker in der unteren rechten Ecke
Box(modifier = Modifier.fillMaxSize().padding(8.dp), contentAlignment = Alignment.BottomEnd) { Box(modifier = Modifier.fillMaxSize().padding(8.dp), contentAlignment = Alignment.BottomEnd) {
Text( Text(
text = "v2026-04-23.9", text = "v2026-04-23.10 - HTTPS FIX",
style = MaterialTheme.typography.labelSmall, style = MaterialTheme.typography.labelSmall,
color = Color.LightGray.copy(alpha = 0.5f) color = Color.LightGray.copy(alpha = 0.5f)
) )