because JSONP has to much limitations
As discussed in the forum, a better support for cross-origin-request would be a nice addition.
I.e. a full features CORS support is required:
Support for pre-flight check must be added to the agent to let post requests work (we are using a request mime-type "text/json" for POST requests)
Reference documentation for the client library must be updated.
Switching on/off of cross domain access should be done via a new jolokia-access.xml restriction, which is by default off (i.e. cross origin access from any domain is allowed)
Is the Reference Documentation updated ?
Preflight Check implemented ?
Integrationstests updated ?
Is there a security setting in jolokia-access.xml for configuring the CORS parameters ?