From be6fed49861370aa4d0cd0420f1dcd88811cad74 Mon Sep 17 00:00:00 2001 From: Liosha84 Date: Thu, 5 Nov 2026 15:43:10 +0100 Subject: [PATCH] =?UTF-8?q?=D0=92=D1=85=D0=BE=D0=B4=20=D0=B8=D0=B7=20?= =?UTF-8?q?=D0=B1=D1=80=D0=B0=D1=83=D0=B7=D0=B5=D1=80=D0=B0:=20=D1=83?= =?UTF-8?q?=D1=87=D0=B8=D1=82=D1=8B=D0=B2=D0=B0=D1=82=D1=8C=20X-Forwarded-?= =?UTF-8?q?*=20=E2=80=94=20=D0=B7=D0=B0=20Caddy=20=D1=81=D0=B2=D0=BE=D0=B9?= =?UTF-8?q?=20=D0=B4=D0=BE=D0=BC=D0=B5=D0=BD=20=D1=81=D1=87=D0=B8=D1=82?= =?UTF-8?q?=D0=B0=D0=BB=D1=81=D1=8F=20=D1=87=D1=83=D0=B6=D0=B8=D0=BC=20?= =?UTF-8?q?=D0=B4=D0=BB=D1=8F=20CORS=20(403)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit α Co-Authored-By: Claude Opus 5.5 --- backend/src/main/resources/application.properties | 3 +++ 1 file changed, 3 insertions(+) diff --git a/backend/src/main/resources/application.properties b/backend/src/main/resources/application.properties index 75463d9..44dcf5a 100644 --- a/backend/src/main/resources/application.properties +++ b/backend/src/main/resources/application.properties @@ -1,5 +1,8 @@ spring.application.name=mail-server server.port=8080 +# behind a proxy (Jambotron Caddy): take scheme/host from X-Forwarded-*, otherwise the browser's own +# domain looks like another origin to CORS and every API call with an Origin header gets 403 +server.forward-headers-strategy=framework # Secrets: environment variables, or files in a config tree (file name = variable name, e.g. /run/mail-secrets/DB_PASSWORD). # No defaults — the server does not start without them (dev profile: application-dev.properties). -- 2.54.0