How do I add an API key to a HttpClient in a ASP.NET MVC application?
Assume a HttpClient having been set up to look like the following (as per standard called with a factory): builder.Services.AddControllersWithViews(); builder.Services.AddHttpClient("weather", weather => { weather.BaseAddress = new Uri("http://api.openweathermap.org/data/2.5"); weather.Timeout = TimeSpan.FromSeconds(15); }).SetHandlerLifetime(TimeSpan.FromSeconds(15)); Now when using the HttpClient to call an…