Skip to content

Add-PodeSecurityContentSecurityPolicy

SYNOPSIS

Adds additional values to already defined values for the Content-Security-Policy header.

SYNTAX

Add-PodeSecurityContentSecurityPolicy [[-Default] <String[]>] [[-Child] <String[]>] [[-Connect] <String[]>]
 [[-Font] <String[]>] [[-Frame] <String[]>] [[-Image] <String[]>] [[-Manifest] <String[]>]
 [[-Media] <String[]>] [[-Object] <String[]>] [[-Scripts] <String[]>] [[-Style] <String[]>]
 [[-BaseUri] <String[]>] [[-FormAction] <String[]>] [[-FrameAncestor] <String[]>] [[-Sandbox] <String>]
 [-UpgradeInsecureRequests] [<CommonParameters>]

DESCRIPTION

Adds additional values to already defined values for the Content-Security-Policy header, instead of overriding them.

EXAMPLES

EXAMPLE 1

Add-PodeSecurityContentSecurityPolicy -Default '*.twitter.com' -Image 'data'

PARAMETERS

-BaseUri

The values to add for the BaseUri portion of the header.

Type: String[]
Parameter Sets: (All)
Aliases:

Required: False
Position: 12
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Child

The values to add for the Child portion of the header.

Type: String[]
Parameter Sets: (All)
Aliases:

Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Connect

The values to add for the Connect portion of the header.

Type: String[]
Parameter Sets: (All)
Aliases:

Required: False
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Default

The values to add for the Default portion of the header.

Type: String[]
Parameter Sets: (All)
Aliases:

Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Font

The values to add for the Font portion of the header.

Type: String[]
Parameter Sets: (All)
Aliases:

Required: False
Position: 4
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-FormAction

The values to add for the FormAction portion of the header.

Type: String[]
Parameter Sets: (All)
Aliases:

Required: False
Position: 13
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Frame

The values to add for the Frame portion of the header.

Type: String[]
Parameter Sets: (All)
Aliases:

Required: False
Position: 5
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-FrameAncestor

The values to add for the FrameAncestor portion of the header.

Type: String[]
Parameter Sets: (All)
Aliases:

Required: False
Position: 14
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Image

The values to add for the Image portion of the header.

Type: String[]
Parameter Sets: (All)
Aliases:

Required: False
Position: 6
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Manifest

The values to add for the Manifest portion of the header.

Type: String[]
Parameter Sets: (All)
Aliases:

Required: False
Position: 7
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Media

The values to add for the Media portion of the header.

Type: String[]
Parameter Sets: (All)
Aliases:

Required: False
Position: 8
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Object

The values to add for the Object portion of the header.

Type: String[]
Parameter Sets: (All)
Aliases:

Required: False
Position: 9
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Sandbox

The value to use for the Sandbox portion of the header.

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 15
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Scripts

The values to add for the Scripts portion of the header.

Type: String[]
Parameter Sets: (All)
Aliases:

Required: False
Position: 10
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Style

The values to add for the Style portion of the header.

Type: String[]
Parameter Sets: (All)
Aliases:

Required: False
Position: 11
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-UpgradeInsecureRequests

If supplied, the header will have the upgrade-insecure-requests value added.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

NOTES