mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Make requesttoken global.
This commit is contained in:
parent
6468e0a1d5
commit
f0b87bc421
1 changed files with 1 additions and 1 deletions
|
|
@ -32,7 +32,7 @@
|
|||
<?php endforeach; ?>
|
||||
<script type="text/javascript">
|
||||
$(function() {
|
||||
var requesttoken = '<?php echo $_['requesttoken']; ?>';
|
||||
requesttoken = '<?php echo $_['requesttoken']; ?>';
|
||||
$(document).bind('ajaxSend', function(elm, xhr, s){
|
||||
if(requesttoken) {
|
||||
xhr.setRequestHeader('requesttoken', requesttoken);
|
||||
|
|
|
|||
Loading…
Reference in a new issue