function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
SF PracticeSF Practice 

Send cookies to external domain (Non Salesforce)

Hello,

Is it possible to send cookies from Salesforce Lightning Controller using (navigateToURL) to external non salesforce domain?

I am able to create cookies using document.cookie in Salesforce Lightning Controller but while redirecting user to external non salesforce domain not able to push cookies. I do see cookies are pushing in same salesforce domain if I am calling another object thru url but not pushing to external non salesforce domain.

Any suggestion will be helpful.

Thanks,
Gaurav
AbhishekAbhishek (Salesforce Developers) 
Hi Gaurav,

I suspect it is not possible to send cookies from Salesforce Lightning Controller using (navigateToURL) to the external non-salesforce domain.

Thanks.