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

show · May 10, 2016 · 1411 hits

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.

求大神指导怎么解决?

No Reply at the moment.
You need to Sign in before reply, if you don't have an account, please Sign up first.