When I enable the CSRF protection at Fuel 1.4,i am getting an csrf token reset issue .
lest elaborate the issue :
my config.php in application config
$config['csrf_protection'] = TRUE;
$config['csrf_token_name'] = 's_csrf_tocken';
$config['csrf_cookie_name'] = 's_csrf_cookie';
$config['csrf_expire'] = 7200;
$config['csrf_regenerate'] = TRUE;
$config['csrf_exclude_uris'] = array();
in a simple module with following filds
name,profile_image ....
so when ever i am going to create or edit then upload a file in profile image section then return back in main from page of the module .
and try to save the from it is giving the error:
An Error Was Encountered
The action you have requested is not allowed.
as the csrf token got changed in iframe of the asset up loader and in main from the csrf not getting updated .
any solution for this issue ?
i have implemented a solution i cant shay its very proper . it still have scope to improve . i used a controller to fetch the csrf
fetching and updating the function when ever a modal i frame is closed
from (needed to optimized if it can be celled only if an update is occurred on the from )
altering the
function as follow .