Skip to content
Ross Nelson edited this page Sep 7, 2019 · 1 revision
  1. Add the Libexec.AspnetCore.EnvironmentHeaders NuGet package to your project
  2. In Startup's ConfigureServices(), add the middleware: services.AddEnvironmentHeaders();
  3. In Startup's Configure(), enable the middleware: app.UseEnvironmentHeaders();

You may want to do step 3 only if env.IsDevelopment() returns true.

Clone this wiki locally