CONFIGURING
Configure cross-origin resource sharing (CORS) to allow a web application from another origin to access resources on a Domino web server.
About this task
For security reasons, most browsers comply with the same-origin policy rule. This rule restricts a web page loaded from one origin from accessing resources on a different server (or origin). CORS allows you to define exceptions to the same-origin policy. Most browsers support CORS.
Note:
CORS works for Domino Access Services (DAS) APIs and other kinds of REST APIs hosted on Domino. Indeed, CORS works for any type of Domino HTTP resource.
Complete the following steps to configure CORS on a Domino server.
Procedure
1. Enable CORS in the Server document of the Domino server:
a. Open the Server document in the Domino directory. (Configuration through Internet site document is not supported).
b. Select the Internet Protocols -> HTTP tab.
c. In the DSAPI section, add the following value to the DSAPI filter file names field:
a. Create a new folder, cors, in the...Domino\data\domino folder on the server.
b. Create a new file cors-rules.json incors folder.
c. In cors-rules.json define the origins that the Domino server can access. For details, see CORS JSON configurationConfigure CORS by editing the cors-rules.json file that you created..
The following message at HTTP server startup means that CORS is correctly configured:
HTTP Server: DSAPI CORS Filter Loaded successfully
The following message at HTTP server startup means that there is a problem with the CORS configuration:
HTTP Server: Failed to load DSAPI module ncorsext