# ForwardAuth middleware: impossible to retrieve original request url

**URL:** <https://community.traefik.io/t/forwardauth-middleware-impossible-to-retrieve-original-request-url/17111>\
**Category:** Traefik v2\
**Tags:** middleware\
**Created:** [January 12, 2023, 5:15pm UTC](https://community.traefik.io/t/forwardauth-middleware-impossible-to-retrieve-original-request-url/17111 "2023-01-12T17:15:08Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![dberardo-com](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/dberardo-com/32/6346_2.png) [@dberardo-com](https://community.traefik.io/u/dberardo-com)\
**Post date:** [January 12, 2023, 5:15pm UTC](https://community.traefik.io/t/forwardauth-middleware-impossible-to-retrieve-original-request-url/17111/1 "2023-01-12T17:15:08Z")

</div>

### What did you do?

according to the documentation of ForwardAuth middleware, the middleware sets also the "Request URI | X-Forwarded-Uri" header in the request forwarded to the Auth server, among others: [Redirecting...](https://doc.traefik.io/traefik/middlewares/http/forwardauth/)

### What did you see instead?

however i can only see:

`x-forwarded-for': , 'x-forwarded-host': 'x-forwarded-port': ' 'x-forwarded-proto': 'x-forwarded-server', 'x-real-ip': ',`

being forwarded, and the auth service needs to access the request url, so how to access X-Forwarded-Uri ?

i have tried also to set trustForwardHeader: true , but no success

### What version of Traefik are you using?

2.8

link to the issue: [ForwardAuth middleware: impossible to retrieve original request url · Issue #9664 · traefik/traefik · GitHub](https://github.com/traefik/traefik/issues/9664)

---

<div class="post-metadata">

**Author:** ![bluepuma77](https://avatars.discourse-cdn.com/v4/letter/b/a9adbd/32.png) [@bluepuma77](https://community.traefik.io/u/bluepuma77)\
**Post date:** [January 12, 2023, 6:56pm UTC](https://community.traefik.io/t/forwardauth-middleware-impossible-to-retrieve-original-request-url/17111/2 "2023-01-12T18:56:34Z")

</div>

Why would you open a request for an old Traefik version? Please use latest Traefik and try again.

---

<div class="post-metadata">

**Author:** ![dberardo-com](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/dberardo-com/32/6346_2.png) [@dberardo-com](https://community.traefik.io/u/dberardo-com)\
**Post date:** [January 13, 2023, 7:16am UTC](https://community.traefik.io/t/forwardauth-middleware-impossible-to-retrieve-original-request-url/17111/3 "2023-01-13T07:16:41Z")

</div>

i am not sure what the action should be. I am using v2.8 and i see the v2.x tag. should i choose v3.x instead ?

---

<div class="post-metadata">

**Author:** ![bluepuma77](https://avatars.discourse-cdn.com/v4/letter/b/a9adbd/32.png) [@bluepuma77](https://community.traefik.io/u/bluepuma77)\
**Post date:** [January 13, 2023, 7:29am UTC](https://community.traefik.io/t/forwardauth-middleware-impossible-to-retrieve-original-request-url/17111/4 "2023-01-13T07:29:59Z")

</div>

v2.9.6 is is the [latest release](https://github.com/traefik/traefik/releases).

---

<div class="post-metadata">

**Author:** ![dberardo-com](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/dberardo-com/32/6346_2.png) [@dberardo-com](https://community.traefik.io/u/dberardo-com)\
**Post date:** [January 13, 2023, 7:47am UTC](https://community.traefik.io/t/forwardauth-middleware-impossible-to-retrieve-original-request-url/17111/5 "2023-01-13T07:47:13Z")

</div>

i see, so you suggest me to update to make sure that the problem might have been fixed in 2.9.6 ? i will check if there is any breaking change and then upgrade
