Skip to main content
Skip table of contents

Enabling Cross-Origin Resource Sharing (CORS)

Cross-Origin Resource Sharing (CORS) allows a server to indicate any origins (domain, scheme, or port) other than its own from which a browser should permit loading resources. For security purposes, the server usually only permits connections from the same origin.

Procedure

Example

Stop the IDMS application pool

Using the file explorer, go to IDMS\WebApi and backup the web.config

Open the web.config in notepad. Locate the system.webServer section

Directly under the <system.webServer>, enter the following

<httpProtocol>
<customHeaders>
<add name="Access-Control-Allow-Origin" value="*" />
</customHeaders>
</httpProtocol>

Save the web.config and restart the IDMS application pool

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.