For Microsoft Reverse Proxy (https://github.com/microsoft/reverse-proxy) also known as YARP. Different from the other YARP: yarp.it
Questions tagged [ms-yarp]
75 questions
0
votes
0 answers
ASP.Net identity redirect to login not working behind proxy
I have a YARP reverse proxy setup with very basic configuration that passes requests straight through to an nginx reverse proxy container (where modsecurity rules are validated) before passing onto the web app. They all reside in Azure.
The reason…

ibeme99
- 1
- 2
0
votes
0 answers
"The request cannot be forwarded, the response has already started" error in YARP
I get a 504 message back when I make a request through a YARP server. Apparently this is a timing issue between the backend and the YARP server. The backend server responds normally when I address it directly with this request through the browser…

teca
- 1
- 2
0
votes
0 answers
In Microsoft's YARP library, what is the difference between a RequestTransform and an HttpTransformer?
I am investigating using Microsoft Yarp as a simple reverse proxy server. I am very confused between two types, HttpTransformer and RequestTransformer. I just want to take an incoming request and strip off a prefix from the given path and then use…

Rob L
- 3,073
- 6
- 31
- 61
0
votes
0 answers
Set timeout for Yarp.ReverseProxy.Forwarder.HttpForwarder
is it possible to configure the Yarp.ReverseProxy.Forwarder.HttpForwarder, so that I can set a timeout for the HttpForwarder? This is a code snippet from Program.cs. The configurations are in appsettings.json. The HTTP forwarder is not explicitly…

Stefan Deller
- 5
- 2
0
votes
0 answers
No claims for an authenticated user using YARP proxy
I'm trying to use YARP proxy to intercept with requests that send a custom (external) UI component placed on our website. What I need is to get a token from the currently authenticated site user and add it to the proxied request. While proxy works…

Takhir Mamirov
- 35
- 6
0
votes
1 answer
Duende BFF Framework - Missing Access Token
I'm trying to authenticate users for access to my React SPA. I'm trying to use IdentityServer6 and Duende's BFF framework to accomplish this. I'm working locally in a debug environment.
I've followed their documentation to the T, and login appears…

Tanksley
- 57
- 10
0
votes
0 answers
How to configure Yarp.ReverseProxy HttpClient to use circuit breaker pattern
We are using YARP Reverse proxy to access multiple services. But not requirement came where we need to implement circuit breaker and retry policy into that proxy service but I didn't found any reference online to achieve that.
…

Ghanshyam Singh
- 1,361
- 2
- 15
- 27
0
votes
0 answers
Request of a file appears in the response of a request
I have a ms yarp and a backend server which is only accessible through the yarp. I noticed that some web pages are not displayed properly, because for example png or css files are not loaded correctly.
I ran Wireshark on the backend server. For a…

teca
- 1
- 2
0
votes
2 answers
Send multiple routes to the same destination address
Can I match multiple paths in yarp?
E.g. I have this:
endpoints.Map("/place/{**catch-all}", async httpContext =>
{
var error = await forwarder.SendAsync(httpContext, "https://maps.googleapis.com/maps/api/",
httpClient, requestConfig,…

BeniaminoBaggins
- 11,202
- 41
- 152
- 287
0
votes
1 answer
Writing a CORS anywhere proxy server with Yarp in an ASP.Net Core 7 app
I'm calling the googleapis web service from Flutter. It works from Android and iOS, However, in web, it is causing a CORS issue as googleapis is not supposed to be called from a browser.
Someone has found a workaround to add this to the start of the…

BeniaminoBaggins
- 11,202
- 41
- 152
- 287
0
votes
1 answer
How to configure Yarp Reverse Proxy between clients and CoreWCF Service (Azure Container app)
I have a CoreWCF Service hosted as an Azure container app, I need to add a reverse proxy between clients and service. I tried using Azure Application Gateway but without success, I keep getting Bad Request error.
I found a microsoft library called…

youssef el basraoui
- 95
- 1
- 5
0
votes
0 answers
Setting up ASP.NET Webforms to ASP.NET Core in IIS
We are migrating an ASP.NET Webforms application to ASP.NET Core using the incremental update approach with YARP. The project runs within VS with the Core app configured to find the RemoteApp at http://localhost:7001, while the Core app itself runs…

Carlos Luna
- 1
- 1
0
votes
0 answers
After upgrading to .net 6. I receive errors when posting multipart formdata. The request is proxied using Yarp
After upgrading to .net 6, I receive errors when posting multipart formdata through a proxy. The request is proxied using Yarp.
The other requests and posts work. I have tried to use HTTP 1.1 but it still gives the same task cancelled error. I have…

Tomas Zonabend
- 1
- 1
0
votes
1 answer
Load Balancing Config with Yarp not working?
I am working on porting over from nginx to Microsoft's YARP for my reverse proxy needs. Its going well enough. However, I am having my doubts about load balancing. Here is the config example from the yarp docs
"ReverseProxy": {
"Clusters": {
…

brando
- 8,215
- 8
- 40
- 59
0
votes
0 answers
YARP and Microsoft AD returns invalid_request: the provided value for the input parameter 'redirect_uri' is not valid
I am trying to get YARP and Microsoft.Identity.Web to play together.
But I am getting:
invalid_request: the provided value for the input parameter 'redirect_uri' is not valid
it works if I connect the Microsoft.Identity.Web to the api directly so it…

Jester
- 3,069
- 5
- 30
- 44