【发布时间】:2015-11-05 00:15:11
【问题描述】:
我试图在我的应用程序中打开一个 iframe,但它没有加载,它给我一个错误消息,如警告:无法验证 CSRF 令牌的真实性并将我注销。凸轮任何人建议什么可能是解决方法。谢谢。
此链接 (Iframe causes Can't Verify CSRF Token Authenticity n Rails) 没有回答我的问题,我已经正确安装了 p3p gem,我的 iframe 加载正确,但是在 iframe 中发生的任何请求都没有发送 p3p 标头和 csrf 令牌
这是我如何称呼我的 iframe
iframe name="frmane" id="batch_grid_frame" src="<%= store_batches_path(@store, :id => @batch.id) %>" style="border:none; height:100%;width:100%;"></iframe>
我尝试了很多方法,但在 iframe 中发出的请求没有发送 p3p 标头或 csrf 令牌
【问题讨论】:
标签: ruby-on-rails ruby-on-rails-3 iframe p3p