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).