Current state: Adopted

Discussion thread: here


Please keep the discussion on the mailing list rather than commenting on the wiki (wiki discussions get unwieldy fast).


Currently, Kafka Connect only allows requests from the same domain of the Kafka Connect cluster. To allow Kafka Connect to process requests from other domains, we need to allow cross origin HTTP requests.

Public Interfaces

Add the following configurations to Kafka Connect’s worker config: access.control.allow.methods

access.control.allow.methods controls which HTTP methods are allowed for cross origin HTTP requests.

Proposed Changes

Adding the above config to WorkerConfig. The methods specified in the config is used to set value to the Access-Control-Allow-Origin header. The default value for the config is an empty string which means that the default value of the Access-Control-Allow-Origin header will be used. The default value of the Access-Control-Allow-Origin header allows cross origin requests for GET, POST and HEAD methods.

Compatibility, Deprecation, and Migration Plan


Rejected Alternatives


  • No labels