# How to change response context using Traefik

**URL:** <https://community.traefik.io/t/how-to-change-response-context-using-traefik/6388>\
**Category:** Traefik v2\
**Tags:** kubernetes-ingress\
**Created:** [June 5, 2020, 1:24am UTC](https://community.traefik.io/t/how-to-change-response-context-using-traefik/6388 "2020-06-05T01:24:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![prantor](https://avatars.discourse-cdn.com/v4/letter/p/94ad74/32.png) [@prantor](https://community.traefik.io/u/prantor)\
**Post date:** [June 5, 2020, 1:24am UTC](https://community.traefik.io/t/how-to-change-response-context-using-traefik/6388/1 "2020-06-05T01:24:12Z")

</div>

Hi,  
Does traefik has a way to change the response content similar to nginx "HTTP Substitutions Filter" or apache "substitution"? I am running traefik in kubernetes. How do I solve it?

Thanks,  
PB

---

<div class="post-metadata">

**Author:** ![edasque](https://avatars.discourse-cdn.com/v4/letter/e/e19b73/32.png) [@edasque](https://community.traefik.io/u/edasque)\
**Post date:** [September 15, 2020, 8:43am UTC](https://community.traefik.io/t/how-to-change-response-context-using-traefik/6388/2 "2020-09-15T08:43:05Z")

</div>

I wish there was a way too. Maybe a custom middleware?

---

<div class="post-metadata">

**Author:** ![ldez](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/ldez/32/5_2.png) [@ldez](https://community.traefik.io/u/ldez)\
**Post date:** [September 15, 2020, 8:46am UTC](https://community.traefik.io/t/how-to-change-response-context-using-traefik/6388/3 "2020-09-15T08:46:00Z")

</div>

- [https://pilot.traefik.io/plugins/270947800646156800/rewrite-body](https://pilot.traefik.io/plugins/270947800646156800/rewrite-body)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/containo/original/2X/b/bd81ebdb578656e76e56ff3cc3eed021d3ba132d.png) [@system](https://community.traefik.io/u/system)\
**Post date:** [September 18, 2020, 8:46am UTC](https://community.traefik.io/t/how-to-change-response-context-using-traefik/6388/4 "2020-09-18T08:46:00Z")

</div>

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.
