02-27-2017 01:26 PM
I have developed a standalone login page that is hosted on finesse server it self. Idea is to access it from a browser outside finesse.
Finese api's are used for the integration.
I understand that inorder to capture the responses from the finese server, the notifications has to be read from the xmpp console.
For this jabberwerx was integrated.
We do not have a bosh server.We have only the finesse server. So in my case bosh server and finesse server are the same.
The httpBindingURL for jabber was given as "http://<finesse-server>:7071"
The web page is hosted in the https environment and we try to access the httpBinding url within this environment.
The jabberwerx throws error " OPTIONS https://<finesse-server>:7071/ net::ERR_SSL_PROTOCOL_ERROR " and throws a network timeout.
Then an error "closed: <stream:error xmlns:stream="http://etherx.jabber.org/streams"><service-unavailable xmlns="urn:ietf:params:xml:ns:xmpp-streams"/></stream:error>"
is thrown.
As per my understanding , the bosh connection is failing.
But I am able to recieve finese api's notifications even though I receive the Bosh connection failed error.
02-28-2017 01:10 PM
Hi Poonam,
If I am not mistaken, the https port is 7443. Can you give that a try?
Thanx,
Denise
02-28-2017 02:29 PM
Hi Denise,
Thank you for the response.Now the bosh connection is established successfully.
The below are the errors thrown now:
"XMLHttpRequest cannot load https://<server-name>:7443/. Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://<server-name>' is therefore not allowed access."
Then throws a network timeout and error
"closed: <stream:error xmlns:stream="http://etherx.jabber.org/streams"><service-unavailable xmlns="urn:ietf:params:xml:ns:xmpp-streams"/></stream:error>".
Thank you,
Poonam
02-28-2017 02:39 PM
Hi Poonam,
Usually "No 'Access-Control-Allow-Origin' header is present on the requested resource" means that you are trying to cross domains (CORS). Finesse does not support CORS until 11.5. You mentioned that the page is on the finesse server itself though.
If it is indeed on the finesse server, you may want to try using localhost instead.
Thanx,
Denise
03-01-2017 08:21 AM
Dear Denise,
Thank you .
The CORS error does not come when I disable the web security of chrome .But the error comes if it is not there.We are using finese 11.5 .
Even after that it throws a network timeout and error
"closed: <stream:error xmlns:stream="http://etherx.jabber.org/streams"><service-unavailable xmlns="urn:ietf:params:xml:ns:xmpp-streams"/></stream:error>".
Regards,
Poonam
03-01-2017 09:26 AM
Hi Poonam,
Take a look at the NonGadgetSample code. It uses jabberwerx to establish the connection.
Thanx,
Denise
03-01-2017 10:11 AM
Hi Denise,
I had referenced the NonGadgetSample code while developing the application.
Thank you,
Poonam
03-01-2017 11:41 AM
even though 11.5 supports cors, I think it still needs to be configured.
03-02-2017 07:24 AM
Thank you..
Let me try doing it.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide