Add CSRF protection to every API call

This commit is contained in:
Joseph Schorr 2013-12-28 14:07:44 -05:00
parent 2e3be90054
commit 21ac1c9210
3 changed files with 28 additions and 1 deletions

View file

@ -67,6 +67,7 @@
<script type="text/javascript">
window.__endpoints = {{ route_data|safe }}.endpoints;
window.__token = '{{ csrf_token() }}';
</script>
<script src="static/js/app.js"></script>