CORS - Cross Origin Resource Sharing

You can make CORS settings for the Login API endpoints that are included in delivery by default as well as for the API endpoints that you create. You can use the CORS settings to control from which websites or portals the API endpoints can be called (in the browser).

CORS settings for API login endpoints

The CORS settings for Login API Endpoint are made in the portal properties.

Step-by-step guide

Proceed as follows to make the CORS settings for API login endpoints:

  1. Open the portal properties ("Portal" > "Properties")

  2. Select the "Security" entry.

  3. Go to the tab "CORS settings for login endpoints"

  4. Click on the icon.

    A dialog box for entering the origin domain is displayed.

  5. Enter the origin domain.

    For the origin domain to be valid, the protocol, host, and port (optional) must be specified.

  6. Click on "OK".

    The origin domain is displayed.

CORS settings for Application API endpoints

Step-by-step guide

Proceed as follows to make the CORS settings for Application API endpoints:

  1. Start the application.

  2. Click the "API Endpoints" area.

    Make sure that the API endpoints view is activated.

    ("View" > "API Endpoints")

  3. Select the endpoint for which you want to make the CORS settings.

    You can also mark multiple endpoints and make the CORS settings for all marked endpoints at the same time.

  4. Click on the icon.

    The "API Settings" dialog box is displayed.

    Allow All Origins (*)

    The "Allow All Origins (*)" option sets a wildcard as the origin, which allows access to the endpoints from all possible sources.

    Use Whitelist

    The whitelist can be used to allow endpoints to be called from individual sources. By default, an empty whitelist is selected. This allows the API endpoints to be called only from within the same domain.

  5. Click the icon to create an entry in the whitelist.

  6. Click on "OK".