Skip to main content

Module is_local_origin

Module is_local_origin 

Source
Expand description

Origin validation utilities for CORS and similar security checks.

Provides is_local_origin to determine whether a URL origin (e.g. from the Origin HTTP header) is a trusted local address.

Functionsยง

is_local_origin
Returns true if the origin string resolves to a local host.