You can learn about how to use csrf for hertz:
- default: This is using csrf by default
- custom_secret: How to set the secret to generate a csrf-token
- custom_errorFunc: How to customize error handling functions
- custom_ignoreMethods: How to set up custom methods that do not need to be protected
- custom_keyLookup: How to customize extractor by setting keyLookup
- custom_extractor: How to customize extractor directly
- custom_next: How to skip the csrf middleware in certain situations