shared
¶
is_localhost
¶
Python
is_localhost(request: Request) -> bool
Whether the request's direct TCP peer is the loopback interface, regardless of which interface the server itself is bound to. Shared by every router that gates a write behind "only from the machine running Dojo" (settings, and the What's Changed toggle).