Rails Rails4 render js: xxx 报异常 InvalidCrossOriginRequest

QETHAN · June 21, 2014 · Last by QETHAN replied at June 21, 2014 · 2728 hits

按照 Rails4 文档,使用 render js: , 页面上给出:Security warning: an embedded 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. 谷歌搜索了,没有找到一个清晰的解决办法。Rails 新手,请多指教!谢谢

胯站了。。。

@pynix 恩。是的。只是不知道该怎么配置,没有查到

去源码搜索这个字符串,然后看看代码上下文就清楚了。。。。

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