mirror of
https://codeberg.org/git-pages/git-pages.git
synced 2026-05-14 03:01:48 +00:00
Default to allowed-custom-headers = ["X-Clacks-Overhead"].
X-Clacks-Overhead: GNU Terry Pratchett
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user