### fix: verbessere CORS-Handling und UI-Markierungen
- **Caddyfile:** Ersetze `Access-Control-Allow-Origin` durch `*`, entferne `Access-Control-Allow-Credentials`, füge `Access-Control-Expose-Headers` hinzu. - **GlobalSecurityConfig:** Lockere `allowedOrigins`, `allowedOriginPatterns` und `exposedHeaders` auf `*`, setze `allowCredentials` auf `false`. - **MailServiceApplication:** Passe CORS-Mapping durch `allowedOrigins` und `allowCredentials` an. - **UI:** Aktualisiere Versionsmarker auf `v2026-04-23.26 - NUCLEAR CORS v2`.
This commit is contained in:
@@ -23,22 +23,22 @@
|
||||
@options method OPTIONS
|
||||
handle @options {
|
||||
header {
|
||||
Access-Control-Allow-Origin "https://app.mo-code.at"
|
||||
Access-Control-Allow-Origin "*"
|
||||
Access-Control-Allow-Methods "GET, POST, PUT, DELETE, OPTIONS"
|
||||
Access-Control-Allow-Headers "*"
|
||||
Access-Control-Allow-Credentials "true"
|
||||
Access-Control-Expose-Headers "*"
|
||||
Access-Control-Max-Age "3600"
|
||||
X-Caddy-CORS "preflight-v25"
|
||||
X-Caddy-CORS "preflight-v26"
|
||||
}
|
||||
respond "" 204
|
||||
}
|
||||
|
||||
header {
|
||||
Access-Control-Allow-Origin "https://app.mo-code.at"
|
||||
Access-Control-Allow-Origin "*"
|
||||
Access-Control-Allow-Methods "GET, POST, PUT, DELETE, OPTIONS"
|
||||
Access-Control-Allow-Headers "*"
|
||||
Access-Control-Allow-Credentials "true"
|
||||
X-Caddy-CORS "forward-v25"
|
||||
Access-Control-Expose-Headers "*"
|
||||
X-Caddy-CORS "forward-v26"
|
||||
defer
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user