Enable user to define their own content-security-policy

This commit is contained in:
joncrangle
2023-11-09 21:50:46 -05:00
parent 81aa00c2ea
commit 924696c015
4 changed files with 34 additions and 25 deletions

View File

@@ -16,6 +16,7 @@ type Rule struct {
XForwardedFor string `yaml:"x-forwarded-for,omitempty"`
Referer string `yaml:"referer,omitempty"`
Cookie string `yaml:"cookie,omitempty"`
CSP string `yaml:"content-security-policy,omitempty"`
} `yaml:"headers,omitempty"`
GoogleCache bool `yaml:"googleCache,omitempty"`
RegexRules []Regex `yaml:"regexRules"`