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
-
Log in to your Identity Cloud tenant.
-
At the top right of the screen, click your name.
-
Select Tenant settings > Global Settings.
-
Click Cross-Origin Resource Sharing (CORS).
-
Click Add a CORS Configuration.
-
Choose the ForgeRock SDK template.
-
Click Next.
Your Identity Cloud tenant generates the correct CORS configuration.
-
Click Save CORS Configuration.