mirror of
https://github.com/HangarMC/Hangar.git
synced 2024-12-21 06:51:19 +08:00
fix csrf headerName (#48)
This commit is contained in:
parent
5ec2ccc68e
commit
6cea7d7c6e
@ -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>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user