Made forcing localhost urls optional