Middleware
Customize HTTP requests in PowerShell Universal.
Middleware.ps1
New-PSUMiddleware -Name 'Middle' -ScriptBlock {
param($HttpContext)
$HttpContext.Response.Cookies.Append('X-Test', "Test")
$true
}Last updated
Was this helpful?