mediamtx/internal/api
Kim Adrian Huynh 61c67cc585 feat(api): add support for multiple allowed origins with wildcards
Introduce a new `allowOrigins` configuration field (slice of strings) to
replace the single-string `allowOrigin`.
Add logic to validate origins against allowed patterns, supporting:
- Exact matches
- Wildcard domain matching (e.g., http://*.example.com)

Update configuration handling in core and test components to support the
new format.
Maintain backwards compatibility with the old `allowOrigin` field.
Update `openapi.yaml` to reflect the new configuration field.
2025-11-19 02:45:54 +01:00
..
testdata/fuzz/FuzzPaginate api: fix crash when itemsPerPage is zero and there are items (#3425) 2024-06-04 23:09:50 +02:00
api.go feat(api): add support for multiple allowed origins with wildcards 2025-11-19 02:45:54 +01:00
api_test.go feat(api): add support for multiple allowed origins with wildcards 2025-11-19 02:45:54 +01:00
paginate.go update golangci-lint configuration (#5182) 2025-11-11 23:57:52 +01:00
paginate_test.go update golangci-lint configuration (#5182) 2025-11-11 23:57:52 +01:00