2024-10-27 21:42:45 +00:00
|
|
|
# Copyright (C) 2024 Manuel Bustillo
|
|
|
|
|
2024-07-11 18:42:31 +02:00
|
|
|
class ApplicationController < ActionController::Base
|
2024-10-27 14:03:13 +01:00
|
|
|
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
|