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> <script>
window.csrf = '${_csrf.token}'; window.csrf = '${_csrf.token}';
window.isLoggedIn = ${headerData.hasUser()?c}; window.isLoggedIn = ${headerData.hasUser()?c};
$.ajaxSetup({headers: {'Csrf-Token': csrf}}); $.ajaxSetup({headers: {'${_csrf.headerName}': csrf}});
</script> </script>
</#if> </#if>