Open gummz opened 10 years ago
I can't for the life of me figure out how to include ajax CSRF tokens myself, so I'm looking for someone more clever than I am to have done it before me.
in your html
<script> window.CSRF_TOKEN = "{{ csrf_token }}";</script>
In your js code just use CSRF_TOKEN
I can't for the life of me figure out how to include ajax CSRF tokens myself, so I'm looking for someone more clever than I am to have done it before me.