We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The CORSConfig struct type has the following field:
CORSConfig
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?
v4.11.2
The text was updated successfully, but these errors were encountered:
This is ordinary copy/paste, people imitate how thing look like in same file.
Sorry, something went wrong.
Feel free to send PR to remove those parts. There are probably other middlewares with fields like that
Thanks for clarifying. I thought I was missing something.
@jub0bs , would you like to send PR for it?
@aldas Not at this time. Perhaps later.
No branches or pull requests
Issue Description
The
CORSConfig
struct type has the following field:The field tag puzzles me. How is such a function meant to be unmarshalled from YAML?
Checklist
Version/commit
v4.11.2
The text was updated successfully, but these errors were encountered: