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.
求大神指导怎么解决?