Basic authentication in a destination #1878
-
I need an hint on a use case i faced today. I can access a "origini website" throug a forward/client proxy, the curl command i use is: I would like to setup a YARP to access the "origini website" without authenticating, this will make my workflow simpler. Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
-x is for a forward/client proxy. YARP is a reverse proxy and can rarely be used for the same scenarios. E.g. when the client connects to YARP it can't specify where requests are proxied to, that's the admin's decision. YARP can add headers to a request. See https://microsoft.github.io/reverse-proxy/articles/transforms.html#requestheader. You could also do this in middleware: https://microsoft.github.io/reverse-proxy/articles/middleware.html |
Beta Was this translation helpful? Give feedback.
-x is for a forward/client proxy. YARP is a reverse proxy and can rarely be used for the same scenarios. E.g. when the client connects to YARP it can't specify where requests are proxied to, that's the admin's decision.
YARP can add headers to a request. See https://microsoft.github.io/reverse-proxy/articles/transforms.html#requestheader. You could also do this in middleware: https://microsoft.github.io/reverse-proxy/articles/middleware.html