go-safeweb icon indicating copy to clipboard operation
go-safeweb copied to clipboard

Provide an ergonomic way to do per-handler interceptor configuration

Open empijei opened this issue 4 years ago • 5 comments

empijei avatar Nov 04 '20 10:11 empijei

Could you please clarify?

kele avatar Feb 01 '21 14:02 kele

Is there a way to protect single handlers with a specific configuration?

empijei avatar Feb 08 '21 08:02 empijei

WDYM "protect single handlers" here? As in, install an InterceptorConfig per handler, or what?

kele avatar Feb 08 '21 08:02 kele

  1. Have some interceptors on single handlers
  2. 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)

empijei avatar Feb 08 '21 08:02 empijei

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.

mikue avatar Apr 15 '21 13:04 mikue