aspnetcore-security-headers
aspnetcore-security-headers copied to clipboard
asp.net core 2.1 UseHsts() naming conflict
Hi there,
Great library, I noticed with asp.net core 2.1 that when I'm using your library that I need to fully qualify the name .UseHsts() method that asp.net core 2.1 uses
HstsBuilderExtensions.UseHsts(app);
I can't use
app.UseHsts();
Also I ran your sample app under tests, but I can't seem to see x-frame-options header when I run the app? I see it's using the appsettings config method ( which I can't find documentation on)
+1
Great minds think alike etc :smiley: I could rename to like UseStrictTransportSecurity()
, but it'd be a breaking change :(
Yes. Even though it's a breaking change I think it should be renamed.