grimen / rack-iframe

Rack middleware for enabling problematic web browsers (Internet Explorer and Safari) to use same cookies in iframes as in parent windows.
https://rubygems.org/gems/rack-iframe
MIT License
13 stars 5 forks source link

Facebook Tab application on Safari #2

Open johanb opened 11 years ago

johanb commented 11 years ago

Is this supposed to work for Facebook Tab applications on Safari 6.0.2 ? I didn't get this to work with a Rails 3.2.8 app and Safari 6.0.2. I'm wondering if I'm doing it wrong, if this middleware isn't supposed to solve my issue or if it's broken. To be clear, the issue is that Safari won't maintain a session in a Facebook Tab application.

For clarity my output of rake middleware in development

use ActionDispatch::Static
use Rack::Lock
use #<ActiveSupport::Cache::Strategy::LocalCache::Middleware:0x007fec12eadcc8>
use Rack::Runtime
use Rack::MethodOverride
use ActionDispatch::RequestId
use Rack::Iframe
use Rails::Rack::Logger
use ActionDispatch::ShowExceptions
use ActionDispatch::DebugExceptions
use ActionDispatch::RemoteIp
use ActionDispatch::Reloader
use ActionDispatch::Callbacks
use ActiveRecord::ConnectionAdapters::ConnectionManagement
use ActiveRecord::QueryCache
use ActionDispatch::Cookies
use ActionDispatch::Session::CookieStore
use ActionDispatch::Flash
use ActionDispatch::ParamsParser
use ActionDispatch::Head
use Rack::ConditionalGet
use Rack::ETag
use ActionDispatch::BestStandardsSupport
run App::Application.routes
mrtnpro commented 11 years ago

We just stumbled across the same problem with our Application. Did you find any Solution for that?

grimen commented 11 years ago

Using this middleware is just a part of the solution; you will need to "fake-visit" a page on your own the 3rd party domain using