Answer the question
In order to leave comments, you need to log in
Csrf_hash should it be public?
The essence of the question is this: there is a project on codeigniter, in it on the front I found the following line
<script type="text/javascript">
var token = '<?php _e( $this->security->get_csrf_hash() )?>',
PATH = '<?php _e(PATH)?>',
BASE = '<?php _e(BASE)?>';
</script>
<script type="text/javascript">
var token = 'fb87626bab9ac6ad4e76f87fd376555',
PATH = 'https://123.global/',
BASE = 'https://123.global/';
</script>
Answer the question
In order to leave comments, you need to log in
Yes, that's how it should be. And yes, you do not understand why these tokens are needed and how it works .
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question