Hi folks,
we're running traefik (as a k8s ingress, if that makes any difference) in front of a bunch of downstream services, some of which erroneously respond to OPTIONS requests with responses that have content in the response body. Is it possible to configure traefik to strip these bodies but forward the headers (modulo Content-Length)?
Thanks!
Check existing middlewares and plugins.
thanks @bluepuma77! I took a look at the existing middlewares and plugins already and didn't find a good match -- there are plenty of body-regex-rewrite plugins, but running a regex on every response to delete everything seemed like overkill. Your prompt led me to look a bit closer at the documentation though, and I found Developing Traefik Plugins. It seems really straight forward to write my own middleware plugin, so I'll probably go ahead with that. Thank you again!