Using csrf protection datatable pagination not working

Using csrf protection datatable pagination not working

Nitesh45Nitesh45 Posts: 1Questions: 1Answers: 0

We are using csrf protection and for datatable first request its work properly but when click on pagination its not work csrf token not regenarate again (codeigniter config file csrf_regenerate is true).

Answers

  • allanallan Posts: 61,723Questions: 1Answers: 10,108 Site admin

    I'm not clear why you would expect a new token to be generated for each page change? It is the same HTML document, not a full page reload, just a Ajax request (assuming you have server-side processing enabled - there won't even be an Ajax call if you don't).

    Please post a link to a test case or use the debugger so I can see how you have the DataTable configured.

    Allan

Sign In or Register to comment.