### fix: verbessere CORS-Konfiguration und DNS-Verifizierung
- **GlobalSecurityConfig:** Optimierung von `allowedOriginPatterns` und Hinzufügen von `exposedHeaders`. - **UI:** Aktualisierung des Versionsmarkers auf `v2026-04-23.20 - CLOUDFLARE DNS VERIFIED`. - **Docs:** Hinzufügen eines Screenshots zur Cloudflare-DNS-Analyse.
This commit is contained in:
+5
-2
@@ -90,10 +90,13 @@ class GlobalSecurityConfig {
|
||||
"http://localhost:4000"
|
||||
)
|
||||
configuration.allowedOriginPatterns = listOf(
|
||||
"*"
|
||||
"https://*.mo-code.at",
|
||||
"http://localhost:[*]"
|
||||
)
|
||||
configuration.allowedMethods = listOf("GET", "POST", "PUT", "DELETE", "OPTIONS")
|
||||
configuration.allowedMethods = listOf("GET", "POST", "PUT", "DELETE", "OPTIONS", "HEAD")
|
||||
configuration.allowedHeaders = listOf("*")
|
||||
configuration.exposedHeaders = listOf("Authorization", "Content-Type")
|
||||
configuration.maxAge = 3600L
|
||||
configuration.allowCredentials = true
|
||||
val source = UrlBasedCorsConfigurationSource()
|
||||
source.registerCorsConfiguration("/**", configuration)
|
||||
|
||||
@@ -64,3 +64,10 @@ Die "Hallo Du!" Test-UI wurde durch produktive, fachlich korrekte Formulare erse
|
||||
- Implementierung einer `WebMvcConfigurer` Bean direkt in `MailServiceApplication.kt` für ein zweites, redundantes CORS-Mapping.
|
||||
- Lockerung der `allowedOriginPatterns` in `GlobalSecurityConfig.kt` auf `*`.
|
||||
- **Status**: Versionsmarker auf v19 aktualisiert.
|
||||
|
||||
### v2026-04-23.20 - CLOUDFLARE DNS VERIFIED & CORS POLISHING
|
||||
- **Analyse**: DNS-Einträge in Cloudflare geprüft (Screenshot). Alle Einträge stehen auf "Nur DNS" (graue Wolke). Cloudflare-Proxy ist inaktiv, daher kann Cloudflare keine CORS-Probleme verursachen.
|
||||
- **Lösung**:
|
||||
- CORS-Konfiguration in `GlobalSecurityConfig.kt` finalisiert: Whitelist für `https://*.mo-code.at` und `http://localhost:[*]` verfeinert.
|
||||
- `allowedMethods` um `HEAD` erweitert und `exposedHeaders` hinzugefügt, um Browser-Warnungen zu eliminieren.
|
||||
- **Status**: Versionsmarker auf v2026-04-23.20 aktualisiert.
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 109 KiB |
+1
-1
@@ -124,7 +124,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.19 - NUCLEAR CORS FIX",
|
||||
text = "v2026-04-23.20 - CLOUDFLARE DNS VERIFIED",
|
||||
style = MaterialTheme.typography.labelSmall,
|
||||
color = Color.LightGray.copy(alpha = 0.5f)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user