I would like to include some ping times in an Angular2 dashboard application. I am unable to do something simple like
this.http.get('https://www.google.com').subscribe((res) => {
Logger.debug('my response:', res);
});
because of CORS issues. I do not have an easy way to build an api endpoint on the server that can provide these as there is no real 'server'. The application is just the files being served on localhost
.
I do not have the ability to add code to the host machine (a simple python node would solve all of my problems), so I am wondering if there is a way to obtain ping times from various ip addresses from within the client side application only.