Chian Middleware with Response headers and forwardauth not respecting response

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

We are also facing the exact same issue wherein forward auth middleware is removing the headers from headers middleware.

Any workaround available ?

Regards,
Dev