Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [CI][CodeIgniter] Problem z CSRF w Internet Explorer 11
aras785
post
Post #1





Grupa: Zarejestrowani
Postów: 859
Pomógł: 177
Dołączył: 29.10.2009

Ostrzeżenie: (0%)
-----


Cześć.

Framework; Codeigniter 3.0

Mam dziwny problem z formularzami w internet explorer 11 (starszych nie sprawdzałem).
Gdy przesyłam "formularz" to dostaję zwrotkę: The action you have requested is not allowed.

W config mam:

  1. $config['csrf_protection'] = true;
  2. $config['csrf_token_name'] = 'csrf_token_name';
  3. $config['csrf_cookie_name'] = 'csrf_cookie_name';
  4. $config['csrf_expire'] = 7200;


I ukryte pole crsf (dołączane automatycznie):
  1. <input type="hidden" name="csrf_token_name" value="5ab6faa347ddf882ff50882c9835cfab" style="display:none;" />


Jeśli chodzi o google chrome i firexfox to wszystko działa jak należy.

Wiecie o co chodzi?

----------------------------------------------------------
EDIT: 05.04.2016 11:06

Znalazłem rozwiązanie na ten problem.
W metatagach kod:

  1. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>


zmieniłem na:

  1. <meta http-equiv="x-ua-compatible" content="IE=9" >


i działa (IMG:style_emoticons/default/smile.gif)

Ten post edytował aras785 5.04.2016, 10:10:48
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 23.08.2025 - 04:59