HF RL Explorer

Task: Implement HTTPS Redirect Middleware in ASP.NET Core

Task: Implement HTTPS Redirect Middleware in ASP.NET Core: a task in Terminal-Lego-15k (Harbor dataset). Create an ASP.NET Core middleware component that redirects all non-secure (HTTP) requests to HTTPS. The middleware should properly obtain the host name from the incoming request and construct…

The task

Create an ASP.NET Core middleware component that redirects all non-secure (HTTP) requests to HTTPS. The middleware should properly obtain the host name from the incoming request and construct the correct HTTPS redirect URL.

Part of PrimeIntellect/Terminal-Lego-15k.