Show TOC

Enabling Cross-Domain Ajax Calls to External Data ServicesLocate this document in the navigation structure

To enable applications running in the portal to perform cross-domain Ajax calls to external data services, you need to configure a destination object for each external domain and modify the corresponding URLs in the application source code.

Context

Note

Due to serious impact on performance, this solution is intended for development environments only.

Procedure

To configure destination objects for external domains, perform the following steps:

  1. Log on to SAP NetWeaver Administrator, and choose Start of the navigation path Configuration Next navigation step Security Next navigation step Destinations End of the navigation path.
  2. Choose Create.
  3. Enter Destination Name (short, without spaces), set Destination Type to HTTP, and choose Next.
  4. In the URL field, enter the domain URL of the external data service to which your application performs an Ajax call.
  5. Enter additional settings as required for your back-end system and landscape. Choose Next.
  6. Select the required authentication type, and choose Finish.
  7. Repeat the above steps to create a destination for each external data service that you need to access.
  8. In your application code, make the following replacement in all URLs that reference external domains: http://<ExternalDomain>/<dataServicePath> to http://<PortalDomain>/DestinationServlet/<DestinationName>/<dataServicePath>, where DestinationName is the name of the destination that you configured for this domain.