Configure CORS (Cross-Origin Resource Sharing) rules before embedding ServiceNow components
Configure a CORS rule to enable cross-domain requests between ServiceNow components and the website that you want to embed the web components.
Vorbereitungen
You must have the following setup in to configure CORS rules for components:
- You must activate the ServiceNow components. For more information, see Activate Web Embeddables.
- At least one ServiceNow component configured on your instance.
Role required: admin
Warum und wann dieser Vorgang ausgeführt wird
You can use the existing CORS rules to enable secure communication between ServiceNow components and the external website. You can also set up a CORS rule so that ServiceNow components are able to make cross-origin requests to retrieve dynamic translations. For more information on creating and defining CORS rules, see Define a CORS rule.
Prozedur
Ergebnisse
The domain name that you’ve entered is configured with CORS rules and can be used to embed the component.