Hello guys! Using Oathkeeper, is it possible to sh...
# talk-oathkeeper
a
Hello guys! Using Oathkeeper, is it possible to show a 404 html error page (instead a json) when request has text/html http header? I can’t find this information in documentation. Thanks!
n
you can redirect to an error page hosted by another service - https://www.ory.sh/docs/oathkeeper/pipeline/error#redirect
a
Yeah, but it will change the host, right? I would like not to redirect. Thanks anyway!
In fact, I’m trying to create a “fallback” access rule, but in access rule I can’t match requests with specific http header. I’ll find another solution with nginx or managed load balancer (gcp). Thanks
n
it depends on how you're using things, if you have oathkeeper as a proxy in front of
<https://some-service.com/>
, for example, you can redirect to
<https://some-service.com/not-found.html>
and it would be the same host