What is the difference between app.UseHsts() and app.UseExceptionHandler()? September 25, 2023 by Tarik Hsts is a security feature to force SSL. It has nothing to do with exceptions. UseHsts UseExceptionHandler