### fix: verbessere CORS-Handling im Caddy-Proxy
Build and Publish Docker Images / build-and-push (., backend/services/mail/Dockerfile, mail-service, mail-service) (push) Successful in 5m56s
Build and Publish Docker Images / build-and-push (., config/docker/caddy/web-app/Dockerfile, web-app, web-app) (push) Successful in 3m51s

- **Caddyfile:** Separates Handling für OPTIONS-Requests mit spezifischen Headern eingeführt, `defer` entfernt.
- **UI:** Aktualisierung des Versionsmarkers auf `v2026-04-23.23 - CADDY CORS OPTIONS FIX`.
- **Docs:** Ergänzung der Analyse und Lösung für Version 23.
This commit is contained in:
2026-04-23 13:40:59 +02:00
parent 03fa74abba
commit af0ece8ded
3 changed files with 20 additions and 6 deletions
+13 -5
View File
@@ -19,18 +19,26 @@
# Reverse Proxy: Plan-B leitet nur /api/mail an den Mail-Service weiter
handle /api/mail/* {
@options method OPTIONS
handle @options {
header {
Access-Control-Allow-Origin "https://app.mo-code.at"
Access-Control-Allow-Methods "GET, POST, PUT, DELETE, OPTIONS"
Access-Control-Allow-Headers "Content-Type, Authorization, *"
Access-Control-Allow-Credentials "true"
Access-Control-Max-Age "3600"
}
respond 204
}
header {
Access-Control-Allow-Origin "https://app.mo-code.at"
Access-Control-Allow-Methods "GET, POST, PUT, DELETE, OPTIONS"
Access-Control-Allow-Headers "*"
Access-Control-Allow-Headers "Content-Type, Authorization, *"
Access-Control-Allow-Credentials "true"
Access-Control-Max-Age "3600"
defer
}
@options method OPTIONS
respond @options 204
reverse_proxy mail-service:8085
}