Welcome Guest, Not a member yet? Register   Sign In
csrf error
#1

hi, sorry for english , when i try to change from :

$config['csrf_protection'] = FALSE;

to :

$config['csrf_protection'] = TRUE;

i have the error :

The action you have requested is not allowed.


This is my config file :



$config['csrf_protection'] = TRUE;
$config['csrf_token_name'] = 'csrf_test_name';
$config['csrf_cookie_name'] = 'hgjhg@#ouppou';
$config['csrf_expire'] = 7200;
$config['csrf_regenerate'] = FALSE;
$config['csrf_exclude_uris'] = array('');



In view i open  the form with :

<?php

          $attributes = array('class' => '',
              'id'                        => 'myform',
              'name'                      => 'form_profile',
              'method'                    => 'POST',
             

          );
          echo form_open_multipart('/user/profile', $attributes);

          ?>


And if i see the source i have :

<input type="hidden" name="csrf_test_name" value="2e60aac30338e51b8555d71542a61803" />


How can i solve it?
Reply


Messages In This Thread
csrf error - by pippuccio76 - 12-26-2019, 04:01 AM
RE: csrf error - by neuron - 12-26-2019, 05:22 AM
RE: csrf error - by InsiteFX - 12-26-2019, 09:53 AM



Theme © iAndrew 2016 - Forum software by © MyBB