Cphalcon: Phalcon v 3.3 Csrf Token error in Chrome

Created on 15 Jan 2017  路  2Comments  路  Source: phalcon/cphalcon

Hi
i have to os
1 - win 10 && 2 - win 7
phalcon v 3.3 error is :+1:

Token Validation Failed*
#0 [internal function]: PostController->createAction()
#1 [internal function]: Phalcon\Dispatcher->callActionMethod(Object(PostController), 'createAction', Array)
#2 [internal function]: Phalcon\Dispatcher->_dispatch()
#3 [internal function]: Phalcon\Dispatcher->dispatch()
#4 D:\wamp64\www\phalcon\public\index.php(73): Phalcon\Mvc\Application->handle()
#5 {main}

in chrome
but in firfox not error :| !!!

need script to reproduce

Most helpful comment

Probably because Chrome requests favicon.ico in background. If it does not find it, it requests the page again and you get a new csrf token. Add favicon.ico

All 2 comments

Post code to reproduce. Also there is no phalcon 3.3, i guess you meant 3.0.3

Probably because Chrome requests favicon.ico in background. If it does not find it, it requests the page again and you get a new csrf token. Add favicon.ico

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Yakovlev-Melarn picture Yakovlev-Melarn  路  3Comments

EquaI1ty picture EquaI1ty  路  3Comments

hailie-rei picture hailie-rei  路  3Comments

sharptry picture sharptry  路  3Comments

kkstun picture kkstun  路  3Comments