nesquena-hermes
8da96a84d3
refactor( #5534 ): move CORS preflight header logic into api/routes (keep server.py thin)
...
The initial fix added ~16 lines to server.py, tripping test_server_py_under_750_lines
(server.py must stay a thin dispatcher; logic belongs in api/). Moved the whole
preflight-response into apply_cors_preflight_headers(handler) in api/routes.py;
server.py's do_OPTIONS is now a 4-line dispatcher. server.py 764 -> 746 lines.
Same security behavior (same-origin/allowlist echo, Vary: Origin, no wildcard,
header-less denial); test rewritten to the header-emitting API + added Vary and
no-header-on-denial assertions and a routes.py wildcard regression guard.
2026-07-05 02:35:10 +00:00
..
2026-03-31 07:02:47 +00:00
2026-07-02 16:24:39 +00:00
2026-07-05 01:25:50 +00:00
2026-06-30 20:59:19 -04:00
2026-07-05 00:12:19 +00:00
2026-06-30 17:13:45 +00:00
2026-04-24 01:24:51 +00:00
2026-06-20 05:36:56 +00:00
2026-07-01 07:54:48 -05:00
2026-06-26 00:12:09 +00:00
2026-07-04 07:28:44 +00:00
2026-07-01 18:01:39 +00:00
2026-05-19 21:35:10 -04:00
2026-07-03 20:26:18 +00:00
2026-07-04 22:46:56 +00:00
2026-06-29 03:44:06 +00:00
2026-06-15 15:41:21 -07:00
2026-05-10 15:21:24 +08:00
2026-06-29 18:22:18 +00:00
2026-06-23 23:40:45 +00:00
2026-05-04 21:26:43 +00:00
2026-07-05 02:10:30 +00:00
2026-06-17 00:20:49 +00:00
2026-07-02 01:15:57 +00:00
2026-07-02 08:17:44 +00:00
2026-06-05 11:35:26 -07:00
2026-06-01 05:05:16 +00:00
2026-06-05 11:35:26 -07:00
2026-06-02 03:58:02 +00:00
2026-07-04 23:40:10 +00:00
2026-07-02 08:17:44 +00:00
2026-06-26 07:58:13 +00:00
2026-06-18 19:22:29 +00:00
2026-06-27 06:03:24 +00:00
2026-06-30 17:06:31 +00:00
2026-07-05 02:35:10 +00:00
2026-06-12 10:03:31 +08:00
2026-06-19 13:16:39 -04:00
2026-05-21 17:43:54 +00:00
2026-05-28 17:47:33 +00:00
2026-06-15 00:10:01 -07:00
2026-07-02 02:36:09 +00:00
2026-07-04 21:40:21 +00:00
2026-07-04 20:55:06 +00:00
2026-07-05 02:10:30 +00:00
2026-05-27 20:57:32 +08:00
2026-06-19 22:09:17 +00:00
2026-05-01 12:10:48 +00:00
2026-06-01 17:20:17 +00:00
2026-07-05 01:15:09 +00:00
2026-06-26 20:49:13 +00:00
2026-06-06 18:04:16 -07:00
2026-06-04 16:46:20 -07:00
2026-06-07 23:18:51 -07:00
2026-07-04 15:36:59 +08:00
2026-06-30 04:28:15 +00:00
2026-05-19 02:27:12 -06:00
2026-06-24 18:08:50 +00:00
2026-06-19 02:14:13 +00:00
2026-07-02 01:15:57 +00:00
2026-05-13 09:49:15 +08:00