i am trying to using the presence plugin and update the user presence to converse.js a js lib for web chat.
When i attempt to make an ajax get call to the presence url I get following error
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://webchat.chatnetwork.net:9090/plugins/presence/status?type=xml&jid=john@te am.channel. This can be fixed by moving the resource to the same domain or enabling CORS.
I tried to edit the source by commenting the line 200
// throw new UserNotFoundException("Domain does not matches local server domain");
but it is not helping me.
I did some research on CORS and found that i have to enable CORS in httpbind to the request object. But unable to locate or override that object for this specific plugin.
Can anyone guide me how can i fix this issue so that i can add 2 field one is enable CORS checkbox and textfield for CORS filter.
This will help me and community.
Thanks
babu