Umbraco 13 and app.UseHsts()
# help-with-umbraco
m
I'm busy with a Umbraco 13 website and I need to add app.UseHsts() to the program.cs file. Where is the best place to add it, should it be before or after app.BootUmbracoAsync() if (app.Environment.IsDevelopment()) { app.UseDeveloperExceptionPage(); } else { app.UseHsts(); } Any suggestions will be greatly appreciated.
m
I belive it should be after the app.BootUmbracoAsync() call. This is where I had to place my header changes to secure x-frame and x-content.
m
awesome thank you
9 Views