Commit Graph
4 Commits
Author SHA1 Message Date
Arun Babu Neelicattu 6a5e307dca feat(server): support wildcard port and host matching in allowed origins (#3470)
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.
2026-09-09 18:10:36 +00:00
Arun Babu Neelicattu 3f9b7053f3 fix(server): allow same-origin HTTP requests matching request Host (#3419)
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.
2026-09-01 02:11:58 +00:00
Arun Babu Neelicattu 2f9d979695 fix(server): preserve WebSocket auth state and support desktop client origins (#2790) 2026-07-28 18:35:11 +00:00
Arun Babu Neelicattuandfl0rianr 168b8a0509 feat(server): support PNA CORS, custom allowed origins, and custom headers (#2660)
* feat(server): support PNA CORS, custom allowed origins, and custom headers

* correct main merge update for unit tests

---------

Co-authored-by: fl0rianr <[email protected]>
2026-07-17 23:54:43 +00:00