summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2020-09-14 20:00:01 +0300
committerAndrew Dolgov <[email protected]>2020-09-14 20:00:01 +0300
commitb4cb67e77f3b228c007f58caac234cae1afabe73 (patch)
tree57b1e6fe915cf2a2ce01ecc076d085cb16c22f08 /index.php
parentc3d14e1fa54c7dade7b1b7955575e2991396d7ef (diff)
remove csrf token from rpc method sanityCheck
Diffstat (limited to 'index.php')
-rw-r--r--index.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/index.php b/index.php
index 543d2b008..21f727cb3 100644
--- a/index.php
+++ b/index.php
@@ -47,6 +47,10 @@
}
?>
+ <script type="text/javascript">
+ const __csrf_token = "<?php echo $_SESSION["csrf_token"]; ?>";
+ </script>
+
<?php print_user_stylesheet() ?>
<style type="text/css">