aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorDylan Reile <dylanbreile@gmail.com>2018-07-30 22:37:34 -0700
committerDylan Reile <dylanbreile@gmail.com>2018-07-30 22:37:34 -0700
commite8ac7af29df54140f170663fc174c5aff8e2e793 (patch)
tree14458a5576eb601c98bcf1fa1b7ba8d318e5c51f /railties
parentcd2fe237f76d9d121c7f57d2de89b1445268de0f (diff)
downloadrails-e8ac7af29df54140f170663fc174c5aff8e2e793.tar.gz
rails-e8ac7af29df54140f170663fc174c5aff8e2e793.tar.bz2
rails-e8ac7af29df54140f170663fc174c5aff8e2e793.zip
Disable content security policy for mailer previews
Diffstat (limited to 'railties')
-rw-r--r--railties/lib/rails/mailers_controller.rb2
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"