You need to sign in to do that
Don't have an account?
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?
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?
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