fix csrf headerName (#48)

This commit is contained in:
Jake Potrebic 2020-07-29 10:16:36 -07:00 committed by GitHub
parent 5ec2ccc68e
commit 6cea7d7c6e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -98,7 +98,7 @@ showFooter: Boolean = true, noContainer: Boolean = false, additionalMeta: Html =
<script>
window.csrf = '${_csrf.token}';
window.isLoggedIn = ${headerData.hasUser()?c};
$.ajaxSetup({headers: {'Csrf-Token': csrf}});
$.ajaxSetup({headers: {'${_csrf.headerName}': csrf}});
</script>
</#if>