‘IApplicationBuilder’ does not contain a definition for ‘UseHsts’

For some errors like this, go to check official definition for that Middleware or Method, in my case, my original project was in Asp.NET Core 2.0, but UseHsts middleware is used from 2.1

Leave a Reply

Your email address will not be published. Required fields are marked *