ForgeRock SDKs

Allow requests from trusted domains

The following content applies to the ForgeRock JavaScript SDK.

Cross-origin resource sharing (CORS) allows requests to AM resources from trusted domains. AM supports CORS, but CORS is not enabled by default.

In this tutorial, you run the sample application locally using a DNS alias. We recommend

Enable CORS support

  1. Log in to your Identity Cloud tenant.

  2. At the top right of the screen, click your name.

  3. Select Tenant settings > Global Settings.

  4. Click Cross-Origin Resource Sharing (CORS).

  5. Click Add a CORS Configuration.

  6. Choose the ForgeRock SDK template.

  7. Click Next.

    Your Identity Cloud tenant generates the correct CORS configuration.

  8. Click Save CORS Configuration.

Copyright © 2010-2023 ForgeRock, all rights reserved.