Closed
Description
Issue Description
The CORSConfig
struct type has the following field:
AllowOriginFunc func(origin string) (bool, error) `yaml:"allow_origin_func"`
The field tag puzzles me. How is such a function meant to be unmarshalled from YAML?
Checklist
- Dependencies installed
- No typos
- Searched existing issues and docs
Version/commit
v4.11.2