V
V
Vasyl Vandych2020-07-22 14:19:57
CodeIgniter
Vasyl Vandych, 2020-07-22 14:19:57

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>


when I go to the site, I see this token open in the inspector. I.e :
<script type="text/javascript">
            var token = 'fb87626bab9ac6ad4e76f87fd376555',
                PATH  = 'https://123.global/',
                BASE  = 'https://123.global/';
        </script>


Is it supposed to be like this or am I missing something?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stalker_RED, 2020-07-22
@glossyweb

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 question

Ask a Question

731 491 924 answers to any question