IFrame Session is a gem that allows problematic web browsers (Internet Explorer and Safari) to use same cookies in iframes as in parent windows.
The gem is Rails-dependent
Add this line to your application's Gemfile:
gem 'iframe_session', git: 'git://github.com/LiveTyping/iframe_session.git'And then execute:
$ bundle
Add call of iframe_session_fix(redirect_path, options = {}) method on the controller your root_path points to.
redirect_pathis the parent iframe pathoptionsis the options hash as forbefore_actioncall
Let's pretend your parent iframe path is http://example.com/ and your routes.rb looks like:
...
root 'home#index'
...In this case your home_controller.rb should look like:
class HomeController < ApplicationController
iframe_session_fix 'http://example.com/', only: :index
def index
...
end
...
end