You need to sign in to do that
Don't have an account?
CSRF-error
Hi,
I have Following page:
<apex:page controller="myclass" showHeader="true" sidebar="true" action={!clean} tabStyle="heatmap__tab" ></apex:page>
and controller class as:
public with sharing class myclass
{
public void clean()
{
List<auditcount__c> existing = [SELECT Id From auditcount__c LIMIT 10];
delete existing;
}
}
When I try scanning my code for the security review, I get Cross Site Reference Forgery error for the above page.
Can anyone please help on how should I enforce Cross Site Reference Forgery in the above VF page? I saw the examples salesforce gave but i couldn't apply it to my case as I need to delete all record from object.