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.
45 lines
1.2 KiB
45 lines
1.2 KiB
// Copyright (c) André N. Klingsheim. See License.txt in the project root for license information.
|
|
|
|
using NWebsec.Core.HttpHeaders.Configuration;
|
|
|
|
namespace NWebsec.Middleware
|
|
{
|
|
class FluentCspSandboxDirective : CspSandboxDirectiveConfiguration, IFluentCspSandboxDirective
|
|
{
|
|
public new IFluentCspSandboxDirective AllowForms()
|
|
{
|
|
base.AllowForms = true;
|
|
return this;
|
|
}
|
|
|
|
public new IFluentCspSandboxDirective AllowPointerLock()
|
|
{
|
|
base.AllowPointerLock = true;
|
|
return this;
|
|
}
|
|
|
|
public new IFluentCspSandboxDirective AllowPopups()
|
|
{
|
|
base.AllowPopups = true;
|
|
return this;
|
|
}
|
|
|
|
public new IFluentCspSandboxDirective AllowSameOrigin()
|
|
{
|
|
base.AllowSameOrigin = true;
|
|
return this;
|
|
}
|
|
|
|
public new IFluentCspSandboxDirective AllowScripts()
|
|
{
|
|
base.AllowScripts = true;
|
|
return this;
|
|
}
|
|
|
|
public new IFluentCspSandboxDirective AllowTopNavigation()
|
|
{
|
|
base.AllowTopNavigation = true;
|
|
return this;
|
|
}
|
|
}
|
|
}
|