Skip to content

Commit

Permalink
Merge pull request #33483 from DylanReile/master
Browse files Browse the repository at this point in the history
Disable content security policy for mailer previews
  • Loading branch information
rafaelfranca committed Sep 12, 2018
2 parents e09c55d + e8ac7af commit 81174b3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions railties/lib/rails/mailers_controller.rb
Expand Up @@ -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"
Expand Down

0 comments on commit 81174b3

Please sign in to comment.