Test referer uri prior to saving it as pre_sso_check_referer