Allow CORS origins for OAuth endpoints

reference australia Updated Sep 10, 2026 1 min read sc-allow-cors-origins-for-oauth-endpoints.md
Raw file servicenow.com

Use a system property to configure to specify which domains are allowed to make cross-origin requests.

ServiceNow can function as an OAuth authorization server, a resource server, or both simultaneously. When browser-based applications must access ServiceNow's OAuth endpoints, such as the authorization server metadata, protected resource metadata, or token endpoint, the browser's same-origin policy blocks these cross-origin requests by default. Configure the Access-Control-Allow-Origin header for these endpoints to specify which domains are allowed to make cross-origin requests.

References:

When integrating third-party solutions with ServiceNow OAuth functionality, ensure that the glide.oauth.cors.allowed.origin system property exists in the system properties [sys_properties] table, and holds the external domain(s) required for Cross Origin Resource Sharing (CORS) functionality.

More information

Attribute

Description

Configuration name

glide.oauth.cors.allowed.origin

Configuration type

System Properties (/sys_properties_list.do)

Data type

String

Recommended value

Varies based on use case. This property can one of these values:1. An empty string 2. A single hostname 3. An asterisk (*), which allows all origins to access the OAuth endpoints.

Tip: There's no dynamic list for allow-listing multiple hostnames. Use an asterisk(*) to access the OAuth endpoints from multiple domains.

Default value

empty string

Fallback value

empty string

Category

Configuration

Security risk

  • Severity score: 3.5
  • CVSS score: Low
  • Security risk details: A third party applications inability to interact with the ServiceNow platform due to browsers' single origin policy may cause a denial of service.

Functional impact

This property can be used to connect MCP clients to the instance when the client exists entirely in the browser, and does not make token or discovery calls via a backend call to the ServiceNow platform.

Dependencies and prerequisites

None

**Parent Topic:**[Configuration](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/platform-security/instance-security-hardening-settings/sc-configuration.md)
Search documentation
Search document titles and file paths on the australia branch