Omit port for http+80 and https+443 in genTokenUrl