mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-23 08:00:45 +00:00
0910ec972d
* feat: allow setting custom cors header on http trigger * preflight * headers one by one * perf: optimize conditional_cors_middleware by checking existing headers first Improves performance by iterating through existing headers once and using flags to track which CORS headers need to be inserted, avoiding unnecessary header lookups for the common case where headers are not present Co-authored-by: Ruben Fiszel <rubenfiszel@users.noreply.github.com> * refactor: use not_insert flags in conditional_cors_middleware for clarity Changed the conditional_cors_middleware logic to use not_insert_* flags instead of needs_* flags as suggested, which better represents the intent when iterating through existing headers first. Co-authored-by: Alexander Petric <alpetric@users.noreply.github.com> --------- Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com> Co-authored-by: Ruben Fiszel <rubenfiszel@users.noreply.github.com>