Configure a destination in the SAP BTP Cockpit in order to bypass the same-origin policy of the browser.
To be able to test your app, you can use a remote OData service that provides product data from the Northwind demo service of the OData group.
In the navigation bar of the SAP BTP Cockpit, choose Destinations and then choose New Destination in the toolbar.
Enter the following values into the corresponding fields:
Field |
Value |
---|---|
Name |
northwind |
Type |
HTTP |
Description |
Northwind OData Service |
URL |
http://services.odata.org |
Proxy Type |
Internet |
Authentication |
NoAuthentication |
Also, enter the following properties in the section Additional Properties:
Property |
Value |
---|---|
WebIDEEnabled |
true |
WebIDESystem |
Northwind |
WebIDEUsage |
odata_gen |
With this configuration you can use the destination for any app inside SAP Web IDE. Whenever an app calls a (local) service beginning with /destinations/northwind/*, the created destination becomes active as a simple proxy. This helps to prevent any possible issues related to the same-origin policy of browsers.