mirror of
https://github.com/basecamp/once-campfire.git
synced 2026-10-26 07:36:53 +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
@@ -7,6 +7,7 @@
|
||||
# can read the public login page. Require a valid Campfire session before an
|
||||
# anonymous caller can allocate a Blob or persist bytes to disk.
|
||||
Rails.application.config.to_prepare do
|
||||
ActiveStorage::BaseController.forgery_protection_verification_strategy = :header_only
|
||||
ActiveStorage::DirectUploadsController.include ActiveStorageAuthentication
|
||||
ActiveStorage::DirectUploadsController.before_action :require_active_storage_authentication
|
||||
|
||||
|
||||
Reference in new issue
Block a user