wedding-planner/app/controllers/application_controller.rb

14 lines
284 B
Ruby
Raw Normal View History

2024-07-11 18:42:31 +02:00
class ApplicationController < ActionController::Base
after_action :set_csrf_cookie
private
def set_csrf_cookie
cookies["csrf-token"] = {
value: form_authenticity_token,
secure: Rails.env.production?,
same_site: :strict,
}
end
2024-07-11 18:42:31 +02:00
end