modules/csrf-module.js
function filterByUrls(url) {
        if(_config.refererIndependentUrls) {
            var isRefererIndependend = false;
            for(var i in _config.refererIndependentUrls) {
                if(new RegExp(_config.refererIndependentUrls[i]).test(url.split('?')[0])) {
                    isRefererIndependend = true;
                    break;
                }
            }
            return isRefererIndependend;
        } else {
            return url === '/';
        }
    }
function filterByUrls(url) {
        if(_config.refererIndependentUrls) {
            var isRefererIndependend = false;
            for(var i in _config.refererIndependentUrls) {
                if(new RegExp(_config.refererIndependentUrls[i]).test(url.split('?')[0])) {
                    isRefererIndependend = true;
                    break;
                }
            }
            return isRefererIndependend;
        } else {
            return url === '/';
        }
    }
function filterByUrls ( url ) { if ( _config . refererIndependentUrls ) { var isRefererIndependend = false ; for ( var i in _config . refererIndependentUrls ) { if ( new RegExp ( _config . refererIndependentUrls [ i ] ) . test ( url . split ( '?' ) [ 0 ] ) ) { isRefererIndependend = true ; break ; } } return isRefererIndependend ; } else { return url === '/' ; } }
This method checks by configured whitelist, if the url is in the list of allowed urls without a
referer in the header
@param url
@returns {boolean}
This method checks by configured whitelist if the url is in the list of allowed urls without a referer in the header