apiUrl check depending on frontend host name