Q:

how to enable CORS in dojo to connect to Openfire

I am working on a dojo ui using strophe I am connecting to openfire in the apache tomcat server. I get the following CORS error " XMLHttpRequest for https://:7443/http-bind/ required Cross Origin Resource Sharing (CORS). "
Any idea of how to enable this using dojo or in apache tomcat or should I do some changes in strophe?

A:

I did the get call before the post and things started working for me.

