diff options
author | Dylan Reile <dylanbreile@gmail.com> | 2018-07-30 22:37:34 -0700 |
---|---|---|
committer | Dylan Reile <dylanbreile@gmail.com> | 2018-07-30 22:37:34 -0700 |
commit | e8ac7af29df54140f170663fc174c5aff8e2e793 (patch) | |
tree | 14458a5576eb601c98bcf1fa1b7ba8d318e5c51f | |
parent | cd2fe237f76d9d121c7f57d2de89b1445268de0f (diff) | |
download | rails-e8ac7af29df54140f170663fc174c5aff8e2e793.tar.gz rails-e8ac7af29df54140f170663fc174c5aff8e2e793.tar.bz2 rails-e8ac7af29df54140f170663fc174c5aff8e2e793.zip |
Disable content security policy for mailer previews
-rw-r--r-- | railties/lib/rails/mailers_controller.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/railties/lib/rails/mailers_controller.rb b/railties/lib/rails/mailers_controller.rb index 0b0e802358..e2d36d7654 100644 --- a/railties/lib/rails/mailers_controller.rb +++ b/railties/lib/rails/mailers_controller.rb @@ -10,6 +10,8 @@ class Rails::MailersController < Rails::ApplicationController # :nodoc: helper_method :part_query, :locale_query + content_security_policy(false) + def index @previews = ActionMailer::Preview.all @page_title = "Mailer Previews" |