I’m struggling to create an oathkeeper rule that also works for trailing slashes in the requested URL.
I have a match.url like “/api/<.*>
The upstream.url is “<server>”
Now when I request /api/something/ it gives a redirect (HTTP 308 permanent redirect) to /api/something, but I don’t want that. I just want to pass on /api/something/ to the underlying service. How would I do that?
ancient-judge-84558
06/22/2023, 9:44 AM
Even if I add a special rule that matches “/api/something/” I get a redirect to /api/something
c
cuddly-city-78540
06/22/2023, 9:55 AM
I would also like to stop the trailing slash issues. I haven’t noticed anything when using glob pattern
<**>
but it might be still redirecting.
a
ancient-judge-84558
06/22/2023, 11:53 AM
I found my issue. It was a system before Oathkeeper, that did the redirect. Oathkeeper does pass trailing slashes. So ignore my complain. 🙂