We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 98a5237 commit 69a0de8Copy full SHA for 69a0de8
middleware/cors.go
@@ -39,7 +39,7 @@ type (
39
// See https://blog.portswigger.net/2016/10/exploiting-cors-misconfigurations-for.html
40
//
41
// Optional.
42
- AllowOriginFunc func(origin string) (bool, error) `yaml:"allow_origin_func"`
+ AllowOriginFunc func(origin string) (bool, error) `yaml:"-"`
43
44
// AllowMethods determines the value of the Access-Control-Allow-Methods
45
// response header. This header specified the list of methods allowed when
middleware/rewrite.go
@@ -27,7 +27,7 @@ type (
27
// Example:
28
// "^/old/[0.9]+/": "/new",
29
// "^/api/.+?/(.*)": "/v2/$1",
30
- RegexRules map[*regexp.Regexp]string `yaml:"regex_rules"`
+ RegexRules map[*regexp.Regexp]string `yaml:"-"`
31
}
32
)
33
0 commit comments