I need to go to a Visualforce page from a Lightning Component. The page has CSRF protection enabled.
I'm trying to use navigateToURL action but it causes the "The link you followed isn’t valid. This page requires a CSRF confirmation token. Report this error to your Salesforce administrator." error.
const navigateEvent = $A.get("e.force:navigateToURL");
navigateEvent.setParams({
"url" : "/apex/TestVisualforceCSRFPage"
});
navigateEvent.fire();
How can I direct a user to the Page bypassing the error?