mirror of https://github.com/rails/rails
Fix loading ActiveStorage::DiskController when CSRF protection is disabled by default
This commit is contained in:
parent
3fa812615a
commit
4d5f0bb30b
|
@ -5,7 +5,7 @@
|
|||
# Always go through the BlobsController, or your own authenticated controller, rather than directly
|
||||
# to the service url.
|
||||
class ActiveStorage::DiskController < ActionController::Base
|
||||
skip_forgery_protection
|
||||
skip_forgery_protection if default_protect_from_forgery
|
||||
|
||||
def show
|
||||
if key = decode_verified_key
|
||||
|
|
Loading…
Reference in New Issue