We're updating the issue view to help you get more done. 

Add CORS support for Agents

Description

As a Javascript User
I want to access Jolokia agents from other locations than where the Javascript was loaded with CORS
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)

Acceptance Criteria:
  • Is the Reference Documentation updated ?

  • Preflight Check implemented ?

  • Integrationstests updated ?

  • Is there a security setting in jolokia-access.xml for configuring the CORS parameters ?

Environment

None

Acceptance Criteria

None

Status

Assignee

Roland Huss

Reporter

Roland Huss

Labels

None

Story Points

5

Fix versions

Priority

Major