AuthRequest determines whether a specific request is permitted to load the /debug/requests or /debug/events pages.

It returns two bools; the first indicates whether the page may be viewed at all, and the second indicates whether sensitive events will be shown.

AuthRequest may be replaced by a program to customise its authorisation requirements.

The default AuthRequest function returns (true, true) iff the request comes from localhost/[::1].

AuthRequest is referenced in 0 repositories