Troubleshooting

Use this procedure to resolve the Cross-Origin Resource Sharing (CORS) error when fetching data from monitored tenants.

  1. Click the Endpoints tab.
  2. In the row of the tenant with error, click the arrow button under the Details column.
  3. Click the Endpoint Policies tab.
  4. In the Request Policies section, click the + icon.
  5. Specify this information:
    Policy type
    Select Header.
    Name
    Specify header-example.
    Policy Definition
    Specify this code, then replace MonitoredTenantURL with the Target Endpoint URL that you specified when creating the ION API suite.

    See Creating the ION API suite.

    <header xmlns="http://www.infor.com/ion/api" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="header-tst" displayName="header-example" enabled="true"  version="1.0">
    <action>set</action>
    <headerName>Origin</headerName>
    <headerValue>MonitoredTenantURL</headerValue>
    </header>
    
  6. Click Save.
  7. Cache reload the page to apply changes.