mirror of
https://github.com/root-fr/jmap-webmail.git
synced 2026-09-24 08:01:19 +00:00
JMAP servers (e.g. Stalwart behind Docker) may return internal hostnames in their session response (https://jmap/ instead of the actual server URL). Replace the origin of all session URLs (apiUrl, downloadUrl, uploadUrl, eventSourceUrl) with the user-configured server origin, using string slicing to preserve RFC 6570 template placeholders without encoding. Fixes #16