Default to allowed-custom-headers = ["X-Clacks-Overhead"].

X-Clacks-Overhead: GNU Terry Pratchett
This commit is contained in:
Catherine
2025-11-11 15:38:08 +00:00
parent 26b29ec4be
commit c90b453d44
2 changed files with 2 additions and 2 deletions

View File

@@ -47,7 +47,7 @@ update-timeout = "60s"
max-heap-size-ratio = 0.5 # * RAM_size
forbidden-domains = []
# allowed-repository-url-prefixes = <nil>
allowed-custom-headers = []
allowed-custom-headers = ["X-Clacks-Overhead"]
[observability]
slow-response-threshold = "500ms"

View File

@@ -112,7 +112,7 @@ type LimitsConfig struct {
// List of allowed custom headers. Header name must be in the MIME canonical form,
// e.g. `Foo-Bar`. Setting this option permits including this custom header in `_headers`,
// unless it is fundamentally unsafe.
AllowedCustomHeaders []string `toml:"allowed-custom-headers" default:"[]"`
AllowedCustomHeaders []string `toml:"allowed-custom-headers" default:"[\"X-Clacks-Overhead\"]"`
}
type ObservabilityConfig struct {