Re: How do I pass the CSRF token when using a jQuery post

2017-11-09 Thread Tony King
Thanks Gourav, I have it working now and I can even understand it, which is even better. For anyone interested my revised working solution is below. I'm sure it would be better practice putting the token into the headers as described in the documentation and elsewhere but I could not get it

Re: How do I pass the CSRF token when using a jQuery post

2017-11-08 Thread Gourav Chawla
See, if this helps: https://stackoverflow.com/questions/8614947/jquery-and-django-csrf-token On Tuesday, November 7, 2017 at 10:25:47 PM UTC+5:30, Tony King wrote: > > > Hi, > > I thought I'd finally understood this but it seems I have not and I've > spent far too much time trying to do it