Fix codeigniter CSRF error An Error Was Encountered, The action you have requested is not allowed

preview_player
Показать описание
Buy Me a Coffee:

#CSRF #Codeigniter #WebDev
Рекомендации по теме
Комментарии
Автор

thanks men i spent hours and hours looking for that solution

O-Services
Автор

you are just disabling the csrf protection on site, this is not the correct way at all

shehrozasmat
Автор

Hello sir. I am facing 303 error. I set CSRF also. I want to do ajax opearion.

chiragpp
Автор

how about added the CSRF security to the form


either use form_open()

or


$csrf = array(
'name' => $this->security->get_csrf_token_name(),
'hash' =>
);



<input type="hidden" name="<?=$csrf['name'];?>" value="<?=$csrf['hash'];?>" />

MrMendykahan
Автор

What is the cause of this problem??I am facing it too

balorryt
Автор

ตัวเล็กมากค่ะมองไม่เห็นค่ะ แปลว่าอะรัยค่ะ

symjneu