mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2026-05-17 08:36:55 +03:00
### Changes Updated `lib/httpserver/httpserver.go` to include a flag that can toggle CORS (defaults to true to keep the current behavior). This PR relates to [this](https://github.com/VictoriaMetrics/VictoriaMetrics/issues/8680#issue-2983786438) feature request ### Checklist The following checks are **mandatory**: - [x] My change does not break backwards compatibility (i.e., preserves CORS being enabled unless specified otherwise via the `-http.cors.disabled=true` flag & value) --------- Co-authored-by: Jai Mehra <jai.mehra@nav-timing.safrangroup.com> Co-authored-by: hagen1778 <roman@victoriametrics.com>