I am trying to connect my Strophe client to the Ejabbered server but am getting 404 error everytime am trying to connect to the server.
below is the error log:
Failed to load http://localhost:5280/: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:4400' is therefore not allowed access. The response had HTTP status code 404.
My Strophe connection code:
window.addEventListener("load", function(){ conn = new Strophe.Connection("http://localhost:5280/http-bind"); conn.connect(localStorage.getItem("username") + '@localhost', localStorage.getItem("password"), OnConnectionStatus); }, false);