57 if (\Config::get('security.csrf_autoload', true)) 58 { 59 $check_token_methods = \Config::get('security.csrf_autoload_methods', array('post', 'put', 'delete')); 60 if (in_array(strtolower(\Input::method()), $check_token_methods) and ! static::check_token()) 61 { 62 throw new \SecurityException('CSRF validation failed, Possible hacking attempt detected!'); 63 } 64 } 65 66 // throw an exception if the output filter setting is missing from the app config 67 if (\Config::get('security.output_filter', null) === null) Backtrace
COREPATH/classes/autoloader.php @ line 364 COREPATH/classes/autoloader.php @ line 247 COREPATH/classes/fuel.php @ line 181 APPPATH/bootstrap.php @ line 30 DOCROOT/index.php @ line 44
Csrf is setup with my own key - also in chrome developer it shows that the cookie is there! Any idea why I would be getting this Error?
You are right the CSRF hidden is missing in the form, this was generated using oil. Shouldn't oil have added the csrf key to the form, if I have it configured to use csrf in the config?
Also what should I put in the form for this to work, the hidden key values?