Sha256: 234665cdc5616a5c6941664786990fe0c25ad4959b6eed7480923d6f135814b8
Contents?: true
Size: 737 Bytes
Versions: 9
Compression:
Stored size: 737 Bytes
Contents
# frozen_string_literal: true # This is a backport for Rails 6.0 for the Same-Site option for the cookies # because this option was added in Rails 6.1. # # See: # https://github.com/decidim/decidim/pull/9051 # https://github.com/rails/rails/issues/35822 # https://github.com/rails/rails/commit/7ccaa125ba396d418aad1b217b63653d06044680 module ActionDispatch class Cookies class CookieJar #:nodoc: alias handle_options_original handle_options def handle_options(options) handle_options_original(options) options[:same_site] ||= Rails.application.config.action_dispatch.cookies_same_site_protection || :lax options[:same_site] = false if options[:same_site] == :none end end end end
Version data entries
9 entries across 9 versions & 1 rubygems