0 Replies Latest reply on May 19, 2016 1:37 PM by kstiehl

    how do i get the domain name of the node server inside an app?

    kstiehl

      i have seen that i can do calls to the nodeserver with

       

      osapi.http.get({href:"http:nodeip.com/whatever"})

       

      but how to i get the domain name dynamically inside the app.

      because when i do

       

      osapi.http.get({href:"/whatever"}).execute(function(response{console.log(response)}));

      it says host would be null which is quite understandable.

       

      or how do i calls in general to the node server without knowing its IP or domain name?