Set PodeSecurity - mdaneri/Pode GitHub Wiki
external help file: Pode-help.xml Module Name: Pode online version: PodeType: Security schema: 2.0.0
Sets inbuilt definitions for security headers.
Set-PodeSecurity [-Type] <String> [-UseHsts] [-XssBlock] [-CspReportOnly] [-ProgressAction <ActionPreference>]
[<CommonParameters>]
Sets inbuilt definitions for security headers, in either Simple or Strict types.
Set-PodeSecurity -Type Simple
Set-PodeSecurity -Type Strict -UseHsts
If supplied, the Content-Security-Policy header will be set as the Content-Security-Policy-Report-Only header.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
{{ Fill ProgressAction Description }}
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
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
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
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
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.