Configuration to Email Multiple Agreement Documents in Lightning You need to whitelist your domain for cross-origin resource sharing (CORS) in Salesforce Lightning to email multiple agreement documents in lightning. To configure CORS Go to Setup > Security > CORS. In the Whitelisted Origins section, click New. In the Origin URL Pattern field, add <yourdomainname>.lightning.force.com Sample value: https://testclm.lightning.force.com. Click Save.
To configure CORS Go to Setup > Security > CORS. In the Whitelisted Origins section, click New. In the Origin URL Pattern field, add <yourdomainname>.lightning.force.com Sample value: https://testclm.lightning.force.com. Click Save.