mirror of
https://github.com/basecamp/once-campfire.git
synced 2026-10-23 22:26:48 +09:00
Use header-only forgery protection and cache complete responses
This commit is contained in:
1 parent
008ea1ab2a
commit
0f5d0b2b6e
12 files changed
+169
-54
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user