getCookieDomain static method
Implementation
static String getCookieDomain() {
var lastCookieLowerCase = lastCookieValue.toLowerCase();
if(!lastCookieLowerCase.contains("domain=")) {
return "";
}
var domainSubstring = lastCookieLowerCase.split("domain=").last;
return domainSubstring.split(";").first;
}