< Back
Get-PodeCsrfMiddleware
Post
NAME 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.
PARAMETERS
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
System.Collections.Hashtable
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>$csrf = Get-PodeCsrfMiddleware
Add-PodeRoute -Method Get -Path '/cpu' -Middleware $csrf -ScriptBlock { /* logic */ }
RELATED LINKS
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.
PARAMETERS
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
System.Collections.Hashtable
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>$csrf = Get-PodeCsrfMiddleware
Add-PodeRoute -Method Get -Path '/cpu' -Middleware $csrf -ScriptBlock { /* logic */ }
RELATED LINKS