新手问题 form_tag 提交时报错 Can't verify CSRF token authenticity 怎么解决

liguangsong · September 24, 2015 · Last by case2111 replied at September 24, 2015 · 1713 hits
Parameters: {"utf8"=>"✓", "authenticity_token"=>"URxRok8OUG3ldCKKzVWeWgF4kZ+ba5z6fLfI/VLPydJNvdv63FMB8/sEA2wg1xFGsbp44HcKrKNxPQEd0ciIVQ==", "name"=>"1", "password"=>"[FILTERED]", "commit"=>"登录"}
Can't verify CSRF token authenticity

以前都是 skip_before_filter :verify_authenticity_token 跳过验证,但是不知道原理,感觉会不会不安全 谁能给点建议

提问太简单,把你的 get ,post 的 http 头部和 html 内容都贴出来 大家才能判断问题出在哪里

2 Floor has deleted
You need to Sign in before reply, if you don't have an account, please Sign up first.