Skip to content

Get-PodeCsrfMiddleware

SYNOPSIS

Returns adhoc CSRF CSRF verification Middleware, for use on Routes.

SYNTAX

Get-PodeCsrfMiddleware [<CommonParameters>]

DESCRIPTION

Returns adhoc CSRF CSRF verification Middleware, for use on Routes.

EXAMPLES

EXAMPLE 1

$csrf = Get-PodeCsrfMiddleware

Add-PodeRoute -Method Get -Path '/cpu' -Middleware $csrf -ScriptBlock { / logic / }

PARAMETERS

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

System.Collections.Hashtable

NOTES