I'm trying to use OwaspHeaders.Core nuget package, but I cannot figure out how to use their fluent style configuration builder in F#. The following is C# code from their documentation converted to F# (and simplified a little).
#r "nuget: OwaspHeaders.Core, 4.2.0"
open OwaspHeaders.Core.Extensions
let config =
SecureHeadersMiddlewareBuilder
.CreateBuilder()
.UseHsts(1200, false)
.Build()
The problem is that the object that CreateBuilder returns has also UseHsts property, which is what is resolved no matter what I try resulting in an error.
FS0003: This value is not a function and cannot be applied.
How can I call UseHsts extension method, instead of accessing the property with same name?
