Maurice
bd5a6cc748
fix(cors): the instance's own address no longer trips ALLOWED_ORIGINS
...
With ALLOWED_ORIGINS set, every request carrying an Origin that was not on
the list was failed with an unhandled error, which the exception filter
answered with a 500. A browser sends Origin on every POST and WebSocket
upgrade, including same-origin ones, so opening TREK under any address the
list did not name (the LAN IP, a second hostname, http instead of https)
broke the login with "Internal Server Error" while another browser that
used the listed address worked.
A request whose Origin is the host it was sent to is now treated as
same-origin and always passes, for REST and the /ws upgrade alike. A
foreign origin is still refused, now with a 403 "Not allowed by CORS" and a
warning in the log naming the origin to add.
Closes #2543
2026-09-29 21:16:26 +02:00
..
2026-09-28 13:19:04 +02:00
2026-07-18 22:13:52 +02:00
2026-09-24 14:05:42 +02:00
2026-09-27 23:15:19 +02:00
2026-09-20 12:11:41 +02:00
2026-09-26 15:59:05 +02:00
2026-08-25 12:36:52 +02:00
2026-09-20 12:11:41 +02:00
2026-08-25 15:22:46 +02:00
2026-07-18 22:13:52 +02:00
2026-09-24 23:17:03 +00:00
2026-08-11 11:15:32 +02:00
2026-09-25 01:24:55 +00:00
2026-09-19 21:45:16 +02:00
2026-08-25 15:22:46 +02:00
2026-09-27 23:15:19 +02:00
2026-08-25 12:36:52 +02:00
2026-09-20 12:11:41 +02:00
2026-09-22 13:30:12 +02:00
2026-08-25 12:36:52 +02:00
2026-09-27 23:15:19 +02:00
2026-09-28 12:19:49 +02:00
2026-09-28 12:19:49 +02:00
2026-09-27 23:15:19 +02:00
2026-09-28 12:19:49 +02:00
2026-09-28 13:19:04 +02:00
2026-09-24 17:35:25 +02:00
2026-09-23 22:40:46 +02:00
2026-09-22 11:06:13 +02:00
2026-08-25 15:22:46 +02:00
2026-09-19 21:45:16 +02:00
2026-09-29 21:16:25 +02:00
2026-08-25 12:36:52 +02:00
2026-09-21 11:09:38 +02:00
2026-09-25 01:24:55 +00:00
2026-09-20 13:54:31 +02:00
2026-09-28 12:19:49 +02:00
2026-09-24 23:17:03 +00:00
2026-09-24 23:17:03 +00:00
2026-09-19 21:45:16 +02:00
2026-09-24 14:05:42 +02:00
2026-09-28 12:19:49 +02:00
2026-09-24 14:05:42 +02:00
2026-08-25 15:22:46 +02:00
2026-09-20 12:11:41 +02:00
2026-09-24 23:17:03 +00:00
2026-09-20 12:48:44 +02:00
2026-08-25 15:22:46 +02:00
2026-09-24 23:17:03 +00:00
2026-09-26 10:36:02 +02:00
2026-08-25 15:22:46 +02:00
2026-09-24 23:48:49 +00:00
2026-09-24 17:35:25 +02:00
2026-09-24 16:34:51 +02:00
2026-09-28 12:19:49 +02:00
2026-09-20 12:11:41 +02:00
2026-09-23 20:32:41 +02:00
2026-08-25 12:36:52 +02:00
2026-04-20 10:11:53 +02:00
2026-09-20 15:29:35 +02:00
2026-09-23 08:28:29 +02:00
2026-09-26 13:19:27 +02:00
2026-08-25 15:22:46 +02:00
2026-09-24 23:17:03 +00:00
2026-09-24 23:17:03 +00:00
2026-09-20 12:48:44 +02:00
2026-09-28 12:19:49 +02:00
2026-08-25 15:22:46 +02:00
2026-08-25 12:36:52 +02:00
2026-08-25 15:22:46 +02:00
2026-09-28 12:19:49 +02:00
2026-09-23 17:41:26 +02:00
2026-09-28 12:19:49 +02:00
2026-09-25 09:19:11 +02:00
2026-09-25 09:19:11 +02:00
2026-09-25 09:19:11 +02:00
2026-09-20 12:11:41 +02:00
2026-09-25 01:24:55 +00:00
2026-09-23 22:40:46 +02:00
2026-09-28 14:40:34 +02:00
2026-08-25 12:36:52 +02:00
2026-09-28 12:19:49 +02:00
2026-09-28 12:19:49 +02:00
2026-08-25 15:22:46 +02:00
2026-09-29 21:16:26 +02:00
2026-09-27 23:15:19 +02:00
2026-09-20 12:11:41 +02:00
2026-08-25 15:22:46 +02:00
2026-09-28 12:19:49 +02:00
2026-09-28 12:19:49 +02:00
2026-09-22 13:30:12 +02:00
2026-09-28 13:19:04 +02:00
2026-09-28 12:19:49 +02:00
2026-09-29 21:16:26 +02:00
2026-09-20 12:11:41 +02:00
2026-09-22 13:30:12 +02:00
2026-09-26 15:59:05 +02:00
2026-09-24 21:56:12 +02:00
2026-09-27 23:15:19 +02:00
2026-09-28 12:19:49 +02:00