Skip to content
Unverified Commit 7529095e authored by Marius Zander's avatar Marius Zander Committed by Jan Wystub
Browse files

fix: use X-Forwarded-Uri if it exists for pathRegex match



the functions `isApiPath` and `isAllowedPath` use the `req.URL.Path` property which leads to faulty behavior when behind a reverse proxy. The correct path can be inferred from the `X-Forwarded-Uri` header by making use of the already provided `requestutil.GetRequestURI` function.

Co-authored-by: default avatarJan Wystub <jan@bam-bam-bam.com>
parent 7b3a36b8
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment