Add the domain where your preference form is hosted to the Cross-Origin Resource Sharing
list so that your users can access your form. Complete this step before you host your form on an
external website or before you use the default method with hosting on a static web
page.
Required Editions
| Available in: Lightning Experience and Salesforce Classic in Developer,
Enterprise, Performance, and Unlimited Editions
|
| User Permissions Needed |
| To use Preference Manager: |
ManagePreferenceManager |
Every external webpage that includes a Preference Manager form must be on the allowed domain
list so that Cross Origin Resource Sharing (CORS) can occur. The allowed domain list is a
security measure to ensure that only certain origin locations are able to include the script to
load the form.
- From the Preference Manager dashboard, find the name of your form, click the dropdown
arrow, and select Configure Allowed Domains.
- Click Add Domain, and then enter the domain URL.
- Save your changes.
After you add the external site to the allowed domain list, embed the preference form into
your external site.