wedding-planner/app/controllers/application_controller.rb
Manuel Bustillo 507d068459
All checks were successful
Run unit tests / unit_tests (pull_request) Successful in 6m0s
Build Nginx-based docker image / build-static-assets (pull_request) Successful in 28m5s
Configure endpoint to support bulk updates
2024-10-27 14:03:13 +01:00

14 lines
284 B
Ruby

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
end