新手问题 Capybara RSpec 测试,点击一个按钮,链接是带 JS 的确认添加,执行出现错误:ActionController::InvalidCrossOriginRequest

show · 2016年05月10日 · 1402 次阅读

capybara rspec 测试,点击一个按钮,链接是带 js 的确认添加,

ActionController::InvalidCrossOriginRequest: Security warning: an embedded <script> tag on another site requested protected JavaScript. If you know what you're doing, go ahead and disable forgery protection on this action to permit cross-origin JavaScript embedding.

求大神指导怎么解决?

暂无回复。
需要 登录 后方可回复, 如果你还没有账号请 注册新账号