Matt Van Horn
d0e01d2863
fix(server): include x-forwarded-host in board mutation origin check
...
Behind a reverse proxy with a custom port (e.g. Caddy on :3443), the
browser sends an Origin header that includes the port, but the board
mutation guard only read the Host header which often omits the port.
This caused a 403 "Board mutation requires trusted browser origin"
for self-hosted deployments behind reverse proxies.
Read x-forwarded-host (first value, comma-split) with the same pattern
already used in private-hostname-guard.ts and routes/access.ts.
Fixes #1734
2026-03-25 00:06:43 -07:00
..
2026-03-11 17:23:33 -05:00
2026-03-06 15:23:55 +00:00
2026-03-10 16:46:04 +00:00
2026-02-18 16:46:45 -06:00
2026-03-23 19:43:50 -05:00
2026-03-23 19:43:50 -05:00
2026-03-20 15:04:55 -05:00
2026-03-06 13:54:58 -06:00
2026-03-18 14:21:50 -05:00
2026-03-20 15:04:55 -05:00
2026-03-14 09:35:35 -05:00
2026-03-10 12:00:29 -04:00
2026-03-10 15:05:19 -05:00
2026-03-16 10:13:19 -05:00
2026-03-10 20:01:08 +05:30
2026-03-25 00:06:43 -07:00
2026-03-16 16:48:13 -05:00
2026-03-03 12:29:32 -06:00
2026-03-03 08:45:26 -06:00
2026-03-18 14:21:50 -05:00
2026-03-23 08:46:05 -05:00
2026-03-24 12:33:11 -07:00
2026-03-20 08:50:00 -05:00
2026-03-23 16:57:33 -05:00
2026-03-19 07:15:36 -05:00
2026-03-19 07:15:36 -05:00
2026-03-18 21:54:10 -05:00
2026-03-18 21:54:10 -05:00
2026-03-20 16:40:27 -05:00
2026-03-23 20:56:34 -05:00
2026-03-18 13:18:48 -05:00
2026-03-23 16:57:38 -05:00
2026-03-16 15:41:48 -05:00
2026-03-05 10:00:22 -06:00
2026-03-11 10:35:41 -05:00
2026-03-15 07:05:01 -05:00
2026-03-05 08:35:59 -06:00
2026-03-16 18:27:20 -05:00
2026-03-23 16:57:33 -05:00
2026-03-20 08:50:00 -05:00
2026-03-13 21:30:48 -05:00
2026-03-07 15:19:03 -06:00
2026-03-23 19:43:50 -05:00
2026-03-11 22:17:21 -05:00
2026-03-14 21:36:05 -05:00
2026-03-12 01:45:08 +00:00
2026-03-14 21:36:05 -05:00
2026-03-16 18:27:20 -05:00
2026-03-17 09:40:07 +05:30
2026-03-24 11:48:59 -05:00
2026-03-11 17:23:33 -05:00
2026-03-23 16:57:33 -05:00
2026-03-07 18:50:25 -06:00
2026-03-20 08:50:00 -05:00
2026-03-07 18:50:25 -06:00
2026-03-07 18:50:25 -06:00
2026-03-06 10:10:23 -06:00
2026-03-24 11:49:00 -05:00
2026-03-06 11:22:24 -06:00
2026-03-07 16:01:19 -06:00
2026-03-20 17:09:57 -05:00
2026-03-24 11:48:59 -05:00
2026-03-05 15:54:55 -06:00
2026-03-24 11:48:59 -05:00
2026-03-24 11:48:59 -05:00
2026-03-06 09:03:27 -06:00
2026-03-20 08:50:00 -05:00
2026-03-16 15:41:48 -05:00
2026-03-24 15:39:59 +02:00
2026-03-12 00:27:41 +08:00
2026-03-23 08:46:05 -05:00
2026-03-07 15:50:14 -05:00
2026-03-11 10:35:41 -05:00
2026-03-16 18:27:20 -05:00
2026-03-03 13:13:47 -06:00
2026-03-16 18:27:20 -05:00
2026-03-14 21:11:06 -05:00
2026-03-16 18:27:20 -05:00
2026-03-14 12:07:04 -05:00
2026-03-13 16:22:34 -05:00
2026-03-11 16:38:16 -05:00
2026-03-07 08:59:34 -06:00
2026-03-16 15:11:01 -05:00
2026-03-16 15:11:01 -05:00
2026-02-19 15:43:52 -06:00
2026-03-24 11:48:59 -05:00
2026-03-20 16:40:27 -05:00
2026-03-24 11:48:59 -05:00
2026-02-20 10:33:10 -06:00
2026-03-13 11:12:43 -05:00
2026-03-17 10:12:44 -05:00
2026-03-17 09:36:35 -05:00