I want to be able to set a var urlbase based on my host. For example, I want to say in my service call,
    if (host ="localhost:8000") {
        var urlBase = '/api';
    } else {
        var urlBase = '/core/api';
    }
What would I put in the "Host" to check the host of the website?
 
     
     
     
     
     
    