Welcome Guest, Not a member yet? Register   Sign In
Ajax request and regenerate csrf
#3

(07-24-2017, 10:19 AM)spjonez Wrote: If you don't need to support concurrent requests pass the new CSRF token back from CI and into your success callback and set it to a variable in JavaScript. Pass the value of your JS variable on each request.

If you do require concurrent requests set regenerate to false. Another option is to use a queue to ensure only a single request fires at any given time.

This is a registration form , i must populate 3 select , the first populate the second and the second the tird . can i set regenerate to false ? But if i set false is false for every part of site?
Is it secure?
Reply


Messages In This Thread
Ajax request and regenerate csrf - by pippuccio76 - 07-23-2017, 06:51 AM
RE: Ajax request and regenerate csrf - by spjonez - 07-24-2017, 10:19 AM
RE: Ajax request and regenerate csrf - by pippuccio76 - 07-24-2017, 12:45 PM



Theme © iAndrew 2016 - Forum software by © MyBB