如果在application_controller中提到了protect_from_forgery选项,那么我可以登录并执行任何GET请求,但是在第一次POST请求时,Rails会重置会话,这会将我注销。
protect_from_forgery
我暂时关闭了protect_from_forgery选项,但希望在Angular.js中使用它。有什么方法可以做到这一点吗?
https://stackoverflow.com/questions/14734243
相似问题