Questions tagged [ms-yarp]

For Microsoft Reverse Proxy (https://github.com/microsoft/reverse-proxy) also known as YARP. Different from the other YARP: yarp.it

75 questions
0
votes
0 answers

YARP simple direct forwarding configuration

I have a web api application built with yarp support listening on port 443. I know it is up and running because postman says so when https://myserver/info. 'Info' is a simple http GET returning some strings from a simple controller. I also have a…
Hugh Jones
  • 2,706
  • 19
  • 30
0
votes
1 answer

Reading (https) response body in yarp's middleware

I'm trying to push request/response into elasticsearch but I'm stuck after reading documentation when trying to get body of response. It's stated there: "While enabling buffering is possible, it's discouraged as it can add significant memory and…
Artur Siwiak
  • 352
  • 3
  • 14
0
votes
0 answers

Migrating Webforms to ASP.NET Core + React. YARP reverse proxy issues

I’m migrating a web form project to a dotnet core project (with a react front end) using a strangler fig approach. I’m able to get successful routing to my webforms app. However,the client side routing stopped working in the react app. If I enter a…
0
votes
1 answer

How to return a 404 on specific routes in Yarp

I have an Angular app and a number of APIs, all exposed through a Yarp reverse proxy. The app is accessed at https://example.com, and the APIs at https://example.com/api/name-of-api. My problem is that the catch-all address for the app is also…
Cobus Kruger
  • 8,338
  • 3
  • 61
  • 106
0
votes
0 answers

YARP: how to supply default credentials in a proxied request

Per https://github.com/microsoft/reverse-proxy/issues/166#issuecomment-1267355264 it is possible to authenticate using the default network credentials cache when a server forwards a request through YARP. (That is, it is possible to authenticate…
Mattias Martens
  • 1,369
  • 14
  • 16
0
votes
0 answers

Azure Public LB in front of YARP on AppService

I'm trying to use YARP (on an app service) as app gateway in front of my App Services. For this I tried the following: create a virtual netwerk / subnet default create app service, install test app (later Yarp) create an private endpoint on the app…
Paul0515
  • 23,515
  • 9
  • 32
  • 47
0
votes
0 answers

How do I challenge Yarp proxy routes by reading header requests?

I am using Yarp to reverse Proxy into internal apps. The authentication is handled by another service and I want to challenge certain request by using api keys assertion. Having gone through the documentation and the sample project here,I have…
Yuvi
  • 528
  • 8
  • 18
0
votes
1 answer

Can yarp transform a request with information from the request header?

I am trying to make a reverse proxy in my application. In my case, I need the path to be transformed to include information stored in the request header. "ReverseProxy": { "Routes": { "MyRoute": { "ClusterId": "MyCluster", …
Chris
  • 329
  • 1
  • 4
  • 16
0
votes
0 answers

ASP.NET Core YARP loading failed for page resources

I'm using YARP Reverse Proxy in .NET 7 but I'm encountering the following problem. I've a route that matches "Path": "/wiki/{*any}" to "Address": "https://it.wiktionary.org/". Thus, if I digit localhost:5000/wiki/prova it loads the…
0
votes
0 answers

Use ASP.NET Core Identity and YARP to protect web API with SPA - CSRF/XSRF returns 400 error: antiforgery token validation failed

I'm using ASP.NET Core Identity (cookie authentication) with a YARP reverse proxy to protect another ASP.NET Core web API which also hosts an Angular SPA. All requests are sent to the reverse proxy which checks if the request is authenticated. If it…
ChThy
  • 221
  • 1
  • 4
  • 12
0
votes
1 answer

Socket.io with YARP

I am trying to build a system using Socket.io and YARP. Yarp is functioning has a Reverse Proxy to all my Services. When trying establish a connection to my socket.io service, through yarp, I am getting connection_error: I noticed there are proper…
João Páris
  • 51
  • 1
  • 4
0
votes
1 answer

How to have middleware conditionally forward request C#, using yarp

I am registering a middleware in the Startup.cs file. In the middleware, i am forwarding the request based on a condition. However, if the condition is not met i would like the default execution flow to be processed (no request forwarding but…
Pbb
  • 408
  • 6
  • 21
0
votes
0 answers

Why is middleware not being registered?

I have this middleware which I have some issues with being registered in my yarp reverse proxy. according to the documentation it should be added like this? program.cs var builder =…
I am not Fat
  • 283
  • 11
  • 36
0
votes
1 answer

Swagger shows "Failed to load API definition" error when accessing from YARP proxy server

Since ocelot is no longer maintained, I decided to give a go to YARP as my API Gateway but it's giving me this silly error when I access one of my endpoints through it: "ReverseProxy": { "Routes": { "client-route": { …
0
votes
1 answer

How can I make yarp match path case insensitive?

My route is "Routes": [ { "RouteId": "routegreen", "ClusterId": "clustergreen", "Match": { "Path": "/api/myendpoint" } } It is not matched for requests going to /api/MyEndpoint. Is it possible to make it case insensitive?
Mathias F
  • 15,906
  • 22
  • 89
  • 159
1 2 3 4
5