Welcome Guest, Not a member yet? Register   Sign In
$config['csrf_protection'] = FALSE; if true my website error
#4

I send the CSRF along when submitting anything by post. I do it all in jquery however.

PHP Code:
<script>
    $(
"#discord-unsync").click(function(event) {
    
event.preventDefault();
 
       $.ajax({
        
type"POST",
        
url"<?=base_url('auth/unsync_discord')?>",
        
data: {
            <?
php echo $this->security->get_csrf_token_name();?>: '<?php echo $this->security->get_csrf_hash();?>',
        }
        });
</script> 
Reply


Messages In This Thread
RE: $config['csrf_protection'] = FALSE; if true my website error - by fabby - 03-12-2019, 06:43 AM



Theme © iAndrew 2016 - Forum software by © MyBB