Allow cross-domain requests to REST APIs
Allow cross-domain requests to REST APIs from a browser-based application in a different domain by creating a record in CORS rules through the Microsoft Viva Connections Integration application scope.
Before you begin
Role required: admin
Procedure
-
Navigate to All > System Web Services > REST > CORS Rules.
-
Select New.
-
On the form, fill in the fields.
|
Field |
Description |
|---|---|
|
Name |
Name for the CORS rule. |
|
Application |
Application containing the associated CORS record. This field is automatically set to Employee Center for Microsoft Viva Connections. |
|
REST API |
The REST API this CORS rule applies to. Enter |
|
Domain |
The domain that this CORS rule applies to. Enter |
|
Max age |
The number of seconds to cache the client session. After an initial CORS request, further requests from the same client within the specified time do not require a preflight message. If you do not specify a value, the default value of 0 indicates that all requests require a preflight message. |
|
HTTP Methods tab |
The HTTP methods allowed.Only the selected methods can be called from the specified domain. The available methods are:
|
|
HTTP Headers tab | |
|
Exposed headers |
List of headers that the browser is allowed to access from the request. |
Parent Topic:Configuring Employee Center for Microsoft Viva Connections
---
title: Allow cross-domain requests to REST APIs
description: Allow cross-domain requests to REST APIs from a browser-based application in a different domain by creating a record in CORS rules through the Microsoft Viva Connections Integration application scope.
locale: en-US
canonical_url: https://www.servicenow.com/docs/r/employee-service-management/employee-experience-foundation/update-cors-rules-viva.html
release: brazil
product: Employee Experience Foundation
classification: employee-experience-foundation
topic_type: task
last_updated: "2026-09-10"
reading_time_minutes: 1
breadcrumb: [Configuring Employee Center for Microsoft Viva Connections, Employee Center for Microsoft Viva Connections, Employee Center Integrations, EmployeeWorks, Employee Service Management]
---
# Allow cross-domain requests to REST APIs
Allow cross-domain requests to REST APIs from a browser-based application in a different domain by creating a record in CORS rules through the Microsoft Viva Connections Integration application scope.
## Before you begin
Role required: admin
## Procedure
1. Navigate to **All** > **System Web Services** > **REST** > **CORS Rules**.
2. Select **New**.
3. On the form, fill in the fields.
<table id="table_zxz_qzb_gyb"><thead><tr><th>
Field
</th><th>
Description
</th></tr></thead><tbody><tr><td>
Name
</td><td>
Name for the CORS rule.
</td></tr><tr><td>
Application
</td><td>
Application containing the associated CORS record. This field is automatically set to Employee Center for Microsoft Viva Connections.
</td></tr><tr><td>
REST API
</td><td>
The REST API this CORS rule applies to. Enter `Microsoft VIVA Integration [sn_now_ms_viva/viva]`.
</td></tr><tr><td>
Domain
</td><td>
The domain that this CORS rule applies to. Enter `https://{tenantName}.sharepoint.com`. For example, https://nowhkconnect.sharepoint.com.This CORS rule is evaluated against requests from the specified domain. You can specify a domain pattern or an IP address.
</td></tr><tr><td>
Max age
</td><td>
The number of seconds to cache the client session. After an initial CORS request, further requests from the same client within the specified time do not require a preflight message. If you do not specify a value, the default value of 0 indicates that all requests require a preflight message.
</td></tr><tr><td>
HTTP Methods tab
</td><td>
The HTTP methods allowed.Only the selected methods can be called from the specified domain. The available methods are:
- **GET**
- **POST**
- **PUT**
- **PATCH**
- **DELETE**
</td></tr><tr><td class="sub-head" colspan="2">
HTTP Headers tab
</td></tr><tr><td>
Exposed headers
</td><td>
List of headers that the browser is allowed to access from the request.
</td></tr></tbody>
</table>4. Select **Submit**.
**Parent Topic:**[Configuring Employee Center for Microsoft Viva Connections](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/employee-service-management/employee-experience-foundation/configure-viva.md)
| title | Allow cross-domain requests to REST APIs |
| description | Allow cross-domain requests to REST APIs from a browser-based application in a different domain by creating a record in CORS rules through the Microsoft Viva Connections Integration application scope. |
| locale | en-US |
| canonical_url | https://www.servicenow.com/docs/r/employee-service-management/employee-experience-foundation/update-cors-rules-viva.html |
| release | brazil |
| product | Employee Experience Foundation |
| classification | employee-experience-foundation |
| topic_type | task |
| last_updated | 2026-09-10 |
| reading_time_minutes | 1 |
| breadcrumb | Configuring Employee Center for Microsoft Viva ConnectionsEmployee Center for Microsoft Viva ConnectionsEmployee Center IntegrationsEmployeeWorksEmployee Service Management |