ForgeRock SDKs 3.3

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 sdkapp.example.com.

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-2022 ForgeRock, all rights reserved.