Function: isMapVxRequestHostname()
function isMapVxRequestHostname(hostname): booleanReturns whether a URL hostname is part of the MapVX API domain tree. Matches mapvx.com and
mapvx.dev plus any subdomain (api.mapvx.com, public-api.mapvx.com, api.mapvx.dev,
portal.mapvx.dev, etc.). Does not match lookalike domains (e.g. notmapvx.com).
Parameters
hostname
string
Value from URL.hostname (no port)
Returns
boolean
True if context headers should be attached for this host
Last updated on