• # Vérification CSRF

    Posté par (site web personnel) . En réponse à l’entrée du suivi ajout de commentaires impossible avec Chromium. Évalué à 3 (+0/-0). Dernière modification le 11 juin 2016 à 20:39.

    Réponse HTTP 422 avec Chrome pour :

    • "POST /nodes/xxxxxx/vote/for HTTP/1.1"
    • "POST /nodes/xxxxxx/comments HTTP/1.1"
    • "POST /suivi HTTP/1.1"

    Tandis qu'avec Firefox, on a du 302 pour :

    • "POST /nodes/xxxxxxx/comments HTTP/1.1"
    • "POST /suivi HTTP/1.1"

    Et la cause du souci avec Chrome :

    WARN -- : Can't verify CSRF token authenticity
    INFO -- : CSRF protection for xx.xx.xx.xx: 
    INFO -- : Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)
    FATAL -- : 
    

    Bref la configuration du navigateur et/ou des greffons empêche la vérification CSRF.