microsoft / reverse-proxy

A toolkit for developing high-performance HTTP reverse proxy applications.
https://microsoft.github.io/reverse-proxy
MIT License
8.6k stars 843 forks source link

Reject Unhandled Routes #2564

Closed hamidrezashahnazari closed 3 months ago

hamidrezashahnazari commented 3 months ago

What should we add or change to make your life better?

Hi there , in my Yarp project I have a list of Exact routes per cluster , if there was an unhandled route which is not match I need to produce 403 Forbbiden status code instead of 404 ? what is the best solution for this case?

Why is this important to you?

benjaminpetit commented 3 months ago

Could you add a catch all default route that would return 403?

MihaZupan commented 3 months ago

Closing as answered, let us know if you need more help