Add CSRF protection to every API call
This commit is contained in:
parent
2e3be90054
commit
21ac1c9210
3 changed files with 28 additions and 1 deletions
|
@ -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>
|
||||
|
|
Reference in a new issue