go-safeweb
go-safeweb copied to clipboard
Provide an ergonomic way to do per-handler interceptor configuration
Could you please clarify?
Is there a way to protect single handlers with a specific configuration?
WDYM "protect single handlers" here? As in, install an InterceptorConfig
per handler, or what?
- Have some interceptors on single handlers
- Have a way to express that on some specific handlers a group of interceptors should behave differently (e.g. where CORS is enabled XSRF should not act)
As discussed yesterday, currently we think that InterceptorConfig should be the way to achieve this.
I think we should add some more documentation on this topic before closing though.