• Checks if a request url is not on a excluded domain list and if it is safe to add correlation headers. Headers are always included if the current domain matches the request domain. If they do not match (CORS), they are regex-ed across correlationHeaderDomains and correlationHeaderExcludedDomains to determine if headers are included. Some environments don't give information on currentHost via window.location.host (e.g. Cordova). In these cases, the user must manually supply domains to include correlation headers on. Else, no headers will be included at all.

    Parameters

    Returns boolean