Remove server header from responses
This commit is contained in:
1 parent
a380c7ea70
commit
2241742ab8
1 file changed
+1
@@ -48,6 +48,7 @@ let main args =
|
||||
WebRootPath = Path.Combine(Directory.GetCurrentDirectory(), "wwwroot"),
|
||||
Args = args))
|
||||
let _ = builder.WebHost.UseStaticWebAssets()
|
||||
let _ = builder.WebHost.UseKestrel(fun opts -> opts.AddServerHeader <- false)
|
||||
builder.Services
|
||||
.Configure<ForwardedHeadersOptions>(
|
||||
fun (opts: ForwardedHeadersOptions) ->
|
||||
|
||||
Reference in new issue
Block a user