ASP.NET Core modify/substitute request body
Take the request body, read its content, make whatever changes are necessary if at all, then create a new stream to pass down the pipeline. Once accessed, the request stream has to be replaced. public async Task Invoke(HttpContext context) { var request = context.Request; if (request.Path.Value.Contains(“DataSourceResult”)) { //get the request body and put it back … Read more