Decide Between Direct Calls and Using a Proxy

An extension can call external REST services either directly or through a proxy. Which method you use depends in part on which authentication method you’ve chosen.

Let’s take a look a the two primary connection types:

This table describes what kind of CORS support you need for your external REST API, depending on which type of server/configuration you’re using:

  In-source Server Local Server Oracle Cloud Application Runtime Configuration
Where is it applicable? If a backend has an in-source server, the server details are used for any call to the backend from VB Studio (where the extension is being developed) or from the Oracle Cloud Applications instance (where the extension is deployed). If the backend has a local server, the server details are used for any call to the backend from VB Studio only (where the extension is being developed). If the backend has a runtime configuration, the server details are used for any call to the backend from the Oracle Cloud Applications instance (where the extension is deployed).
What kind of CORS support does your REST API need? There is no Connection Type attribute available to circumvent CORS.

The external REST system must provide CORS support irrespective of the authentication type used.
If the external REST system doesn’t have CORS support, you can change the Connection Type attribute to “Always use proxy” or “Dynamic, Service doesn’t support CORS”.

Authentication types—Basic and OCI Signature—always use the proxy and are therefore not subject to CORS.
There is no Connection Type attribute available to circumvent CORS for individual backends. However, authentication types—Basic, OAuth 2.0 Client Credentials, and OAuth 2.0 Resource Owner Password—always use the proxy and therefore are not subject to CORS.