1

I am trying to open an iframe in my application and its not loading, its giving me a error message like WARNING: Can't verify CSRF token authenticity and logging me out. Cam any one suggest as to what could be the workaround. Thahnks.

This link (Iframe causes Can't Verify CSRF Token Authenticity n Rails) does not answer my question, I have the p3p gem installed my iframe loads correctly, but there is any request that is happening in iframe that time niether p3p headers nor csrf token are sent

Here is how i call my iframe

<iframe name="frmane" id="batch_grid_frame" src="<%= store_batches_path(@store, :id => @batch.id) %>" style="border:none; height:100%;width:100%;"></iframe>

I have tried many ways but p3p header or csrf token is not sent on requests made in iframe

Community
  • 1
  • 1
opensource-developer
  • 1,990
  • 1
  • 20
  • 57

1 Answers1

0

After struggling a lot and doing research, i finally found a link which helped me resolve my issue. http://forum.dhtmlx.com/viewtopic.php?f=19&t=32855

i added the CSRF token in the dhtmlx grid and it worked i.e. the content inside iframe started loading

opensource-developer
  • 1,990
  • 1
  • 20
  • 57