We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7107bb6 commit abd014aCopy full SHA for abd014a
Modules/CippEntrypoints/CippEntrypoints.psm1
@@ -53,7 +53,16 @@ function Receive-CippHttpTrigger {
53
if ($FunctionName -eq 'Invoke-Me') {
54
return
55
}
56
-
+ } catch {
57
+ Write-Information "Access denied for $FunctionName : $($_.Exception.Message)"
58
+ Push-OutputBinding -Name Response -Value ([HttpResponseContext]@{
59
+ StatusCode = [HttpStatusCode]::Forbidden
60
+ Body = $_.Exception.Message
61
+ })
62
+ return
63
+ }
64
+
65
+ try {
66
Write-Information "Access: $Access"
67
if ($Access) {
68
& $FunctionName @HttpTrigger
0 commit comments