From e8ac7af29df54140f170663fc174c5aff8e2e793 Mon Sep 17 00:00:00 2001 From: Dylan Reile Date: Mon, 30 Jul 2018 22:37:34 -0700 Subject: Disable content security policy for mailer previews --- railties/lib/rails/mailers_controller.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'railties/lib/rails/mailers_controller.rb') 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" -- cgit v1.2.3