Use header-only forgery protection and cache complete responses

This commit is contained in:
GPT on behalf of DHH committed 2026-10-08 09:05:10 +02:00
1 parent 008ea1ab2a
commit 0f5d0b2b6e
12 files changed
+169 -54

No files matched your search

+5
View File
@@ -36,6 +36,11 @@ module ApplicationHelper
end
private
# Header-only forgery protection needs no secret in forms or cached HTML.
def token_tag(*)
""
end
def admin_body_class
"admin" if Current.user&.can_administer?
end