Embed login in IE without using iframe

I do not see error messages in the log file, and there are no messages on the screen. Logging into my Rails 3 application, as it is served in an iframe from another site, leads to a return to the main site without user login.

It looks like the Rails application does not recognize cookies through an iframe. Anyone else run into this problem? Where can I go see what the error is?

Please note that this ONLY happens in IE version 8 (maybe this happens in 7 and 6, not yet tested).

+3
source share
2 answers

James is right, IE has some protection to prevent the creation of iFrames cookies. It is easy to fix this there, just include the following response header in the controller:

response.headers['P3P'] = 'CP="NON DSP COR CURa IVAa IVDa CONa OUR NOR STA"'

: http://adamyoung.net/IE-Blocking-iFrame-Cookies

+1

IE 6 7 Devise with iframes. , , iframes IE. , , IE .

, IE, .

0

All Articles