Middleware that functions like nginx sub_filter?

Hey there

Is it possible to create a middleware for Traefik that functions like the nginx sub_filter module?

I would love to be able to inject custom CSS in a service where I don't have the option to modify the source files.

Thanks!

Hello.

Yes, I created a Traefik plugin that acts like the Nginx sub_filter module.

Be aware that this might have a resource and response time impact, if you run regex over every response, especially if that includes fat client libraries like React.

The plugin looks very vibe coded, I hope it has been tested thoroughly.