---
title: Creating a Cross Domain Access Policy
slug: ps/help/en_us/ics/com/wrcg/creating-a-cross-domain-access-policy
docTags: 
createdAt: 2026-08-03T10:00:46.614Z
---

The XMLHttpRequest object allows scripts to perform HTTP client functionality, such as submitting form data or loading data from a server. Today's web browsers impose a security restriction on the use of XMLHttpRequest. You are not allowed to make XMLHttpRequests to any server except the server where your web page came from. For example, if both your web application and the data required for that application come from the same web server, then there is no restriction. But, if your web application is on one server and you make a request to a different server, the browser prevents the connection from opening. It is possible to bypass this security, however.

You can create a resource profile that determines whether or not to impose this restriction and to what level. By default, this restriction is bypassed and cross domain access is allowed.

To create a cross domain access policy:

1. In the admin console, choose **Users > Resource Policies > Web.**
2. If your administrator view is not already configured to show cross-domain policies, make the following modifications:
3. Click the **Customize** button in the upper right corner of the page.
4. Select the **Rewriting** check box.
5. Select the **Cross Domain Access&#x20;**&#x63;heck box below the **Rewriting** check box.
6. Click **OK**.
7. Select the **Rewriting > Cross Domain Access&#x20;**&#x74;ab.
8. On the **Cross Domain Access&#x20;**&#x70;age, enter a name to label this policy (required) and a description of the policy (optional).
9. In the Resources section, specify the URLs to which this policy applies.
10. In the Roles section, specify:
    - **Policy applies to ALL roles** - To apply this policy to all users.
    - **Policy applies to SELECTED roles&#x20;**- To apply this policy only to users who are mapped to roles in the **Selected roles** list. Make sure to add roles to this list from the **Available roles** list.
    - **Policy applies to all roles OTHER THAN those selected below&#x20;**- To apply this policy to all users except for those who map to the roles in the **Selected roles** list. Make sure to add roles to this list from the **Available roles** list.
11. In the Action section, specify:
    - **Allow Cross Domain Access** - To not impose any restriction and allow cross domain access.
    - **Deny XMLHttpRequest Cross Domain Access only** - To deny cross domain access if the XMLHttpRequest object is used in the call.
    - **Deny all Cross Domain Access** - To deny cross domain access regardless of whether or not the XMLHttpRequest object is used in the call.
    - **Use Detailed Rules** - To specify one or more detailed rules for this policy.
12. Click **Save Changes**.
