Merge pull request #9001 from colinux/dev-active-storage-attachment-url
ETQ développeur je veux pouvoir utiliser les urls d'attachments en local
This commit is contained in:
commit
4513c52213
1 changed files with 4 additions and 0 deletions
|
@ -92,6 +92,10 @@ Rails.application.configure do
|
|||
protocol: :http
|
||||
}
|
||||
|
||||
Rails.application.config.after_initialize do # allow attachment.url with disk service
|
||||
ActiveStorage::Current.url_options = { host: ENV.fetch("APP_HOST") }
|
||||
end
|
||||
|
||||
# Use Content-Security-Policy-Report-Only headers
|
||||
config.content_security_policy_report_only = true
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue