Enabling CORS(Cross Origin Resource Sharing) is one of the primary requirement when we are playing with multiple environments and want to access service from the different environment.

Considering, we have a OSB service that is deployed in one environment(Oracle Cloud) and want to access this service outside from the Oracle cloud environment, let’s say share point environment.

To achieve this, We have to send the Access-Control-Allow-Origin header in the service response.

Drop the Transport Header Component from the component pallet in the response Pipeline with the below property:

That’s it!