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
Gindi SahotaGindi Sahota 

csrf

We have a lightning component which has a button that opens a Docusign VF page using window.open(). After upgrading to the latest version of Docusign we get the error: 'The link you followed isn’t valid. This page requires a CSRF confirmation token. Report this error to your Salesforce administrator.'

The solutions found online suggest using URLFOR, however this is not available in a Lightning Component. Does anyone have any suggestions for a solution to this problem?
SandhyaSandhya (Salesforce Developers) 
Hi,

There’s nothing similar to URLFOR() in the Lightning Component framework. Instead, use simple string concatenation.Refer below links.

https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/expr_resource_value_provider.htm
 
https://salesforce.stackexchange.com/questions/155964/wrong-use-of-urlfor-inside-a-controller-of-aura-component/155965
 
   Please mark it as solved if my reply was helpful. It will make it available for other as the proper solution.
                                             
Best Regards
Sandhya