You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
1.1 KiB
28 lines
1.1 KiB
// Copyright (c) André N. Klingsheim. See License.txt in the project root for license information.
|
|
|
|
using NWebsec.Core.HttpHeaders.Configuration;
|
|
|
|
namespace NWebsec.Core
|
|
{
|
|
public class NWebsecContext
|
|
{
|
|
public static readonly string ContextKey = "nwebsec.Context";
|
|
|
|
public ISimpleBooleanConfiguration NoCacheHeaders { get; set; }
|
|
public ISimpleBooleanConfiguration XContentTypeOptions { get; set; }
|
|
public ISimpleBooleanConfiguration XDownloadOptions { get; set; }
|
|
public IXFrameOptionsConfiguration XFrameOptions { get; set; }
|
|
public IXRobotsTagConfiguration XRobotsTag { get; set; }
|
|
public IXXssProtectionConfiguration XXssProtection { get; set; }
|
|
public ICspConfiguration Csp { get; set; }
|
|
public ICspConfiguration CspReportOnly { get; set; }
|
|
|
|
public ConfigurationOverrides ConfigOverrides { get; set; }
|
|
}
|
|
|
|
public class ConfigurationOverrides
|
|
{
|
|
public ICspConfiguration CspOverride { get; set; }
|
|
public ICspConfiguration CspReportOnlyOverride { get; set; }
|
|
}
|
|
}
|