Allow specifying wildcard ports (:*) and subdomain wildcards (*.domain)
in allowed origin configuration (e.g. LEMONADE_ALLOWED_ORIGINS) to support
local development and homelab environments with dynamic frontend ports
without relaxing scheme checks or origin boundary enforcement.
Permit same-origin HTTP and WebSocket requests when the Origin header matches the target Host header and is validated against server-known self identities enumerated from the OS (interface IPs, hostname, and .local mDNS). Enforce strict allowlist precedence where explicit allowed_origins is authoritative without fallback, centralize allowed origins resolution in utils::resolve_allowed_origins(), and harden against DNS rebinding and loopback subdomain spoofing.
* feat(server): support PNA CORS, custom allowed origins, and custom headers
* correct main merge update for unit tests
---------
Co-authored-by: fl0rianr <[email protected]>