Skip to content

Instantly share code, notes, and snippets.

@javiertoledo
Created February 5, 2012 13:53
Show Gist options
  • Save javiertoledo/1745688 to your computer and use it in GitHub Desktop.
Save javiertoledo/1745688 to your computer and use it in GitHub Desktop.
Using Rack iframe middleware to fix an issue on losing sessions inside iframes
require ::File.expand_path('../config/environment', __FILE__)
# Use the iframe Rack middleware
require 'rack/iframe'
use Rack::Iframe
run MyApp::Application
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment