Skip to content

Set-PodeSecurity

SYNOPSIS

Sets inbuilt definitions for security headers.

SYNTAX

Set-PodeSecurity [-Type] <String> [-UseHsts] [-XssBlock] [<CommonParameters>]

DESCRIPTION

Sets inbuilt definitions for security headers, in either Simple or Strict types.

EXAMPLES

EXAMPLE 1

Set-PodeSecurity -Type Simple

EXAMPLE 2

Set-PodeSecurity -Type Strict -UseHsts

PARAMETERS

-Type

The Type of security to use.

Type: String
Parameter Sets: (All)
Aliases:

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

-UseHsts

If supplied, the Strict-Transport-Security header will be set.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

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

-XssBlock

If supplied, the X-XSS-Protection header will be set to blocking mode. (Default: Off)

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

Back to top