When I chain a headers middleware with a forwardauth the error response from the forwardauth does not get headers added to it by the headers middleware.
"traefik.http.middlewares.secureheaders.headers.customresponseheaders.server=notifications"
"traefik.http.middlewares.secureheaders.headers.customresponseheaders.Cache-control=no-store"
"traefik.http.middlewares.secureheaders.headers.customresponseheaders.Pragma=no-cache"
"traefik.http.middlewares.secureheaders.headers.customresponseheaders.X-Content-Type-Options=nosniff"
traefik.http.middlewares.ingressauth.forwardauth.address=http://authorisation_api/check/licenses/jwt
traefik.http.middlewares.ingresssecure.chain.middlewares=secureheaders@docker,ingressauth@docker
I would expect the headers middleware to be applied to the 401 response from the forwardauth