If window.location.href is http://localhost:8000/app/#/, one would expect a GET to ./ping to be a request to http://localhost:8000/app/ping. At least, that's how XMLHttpRequest behaves.
But instead it looks like http.request sends the request to http://localhost:8000./ping, which is not a valid URL...
If
window.location.href
ishttp://localhost:8000/app/#/
, one would expect a GET to./ping
to be a request tohttp://localhost:8000/app/ping
. At least, that's how XMLHttpRequest behaves.But instead it looks like
http.request
sends the request tohttp://localhost:8000./ping
, which is not a valid URL...