You are not required to issue the apache credentials to Lightstreamer through javascript.

See this FAQ for our guidelines.