Skip to content

Instantly share code, notes, and snippets.

@nkwhr
Created May 6, 2014 14:24
Show Gist options
  • Save nkwhr/7fc444d3cac3d0a7a6f6 to your computer and use it in GitHub Desktop.
Save nkwhr/7fc444d3cac3d0a7a6f6 to your computer and use it in GitHub Desktop.
Rack middleware for deleting 'Set-Cookie' headers.
module MyApp
class Application < Rails::Application
config.autoload_paths += %W(#{config.root}/lib)
config.middleware.insert_before ActionDispatch::Cookies, "CookieFilter"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment