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.
30 lines
1.5 KiB
30 lines
1.5 KiB
// Copyright (c) André N. Klingsheim. See License.txt in the project root for license information.
|
|
|
|
namespace NWebsec.Core.HttpHeaders.Configuration
|
|
{
|
|
public interface ICspConfiguration
|
|
{
|
|
bool Enabled { get; set; }
|
|
ICspDirectiveConfiguration DefaultSrcDirective { get; set; }
|
|
ICspDirectiveConfiguration ScriptSrcDirective { get; set; }
|
|
ICspDirectiveConfiguration ObjectSrcDirective { get; set; }
|
|
ICspDirectiveConfiguration StyleSrcDirective { get; set; }
|
|
ICspDirectiveConfiguration ImgSrcDirective { get; set; }
|
|
ICspDirectiveConfiguration MediaSrcDirective { get; set; }
|
|
ICspDirectiveConfiguration FrameSrcDirective { get; set; }
|
|
ICspDirectiveConfiguration FontSrcDirective { get; set; }
|
|
ICspDirectiveConfiguration ConnectSrcDirective { get; set; }
|
|
ICspReportUriDirectiveConfiguration ReportUriDirective { get; set; }
|
|
|
|
//CSP 2
|
|
ICspDirectiveConfiguration BaseUriDirective { get; set; }
|
|
ICspDirectiveConfiguration ChildSrcDirective { get; set; }
|
|
ICspDirectiveConfiguration FormActionDirective { get; set; }
|
|
ICspDirectiveConfiguration FrameAncestorsDirective { get; set; }
|
|
ICspPluginTypesDirectiveConfiguration PluginTypesDirective { get; set; }
|
|
ICspSandboxDirectiveConfiguration SandboxDirective { get; set; }
|
|
|
|
//Upgrade insecure requests
|
|
ICspUpgradeDirectiveConfiguration UpgradeInsecureRequestsDirective { get; set; }
|
|
}
|
|
}
|