WithTrustedProxies adds trusted proxies from which proxy headers are trusted.
(cidrs ...string)
| 95 | |
| 96 | // WithTrustedProxies adds trusted proxies from which proxy headers are trusted. |
| 97 | func WithTrustedProxies(cidrs ...string) Option { |
| 98 | return func(o *options) { |
| 99 | o.trustedProxies = append(o.trustedProxies, cidrs...) |
| 100 | } |
| 101 | } |
| 102 | |
| 103 | // WithCookieKeys sets the cookie hash key and block key. |
| 104 | func WithCookieKeys(hashKey, blockKey []byte) Option { |