We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c9e848 commit 3635677Copy full SHA for 3635677
lib/secure_headers/railtie.rb
@@ -8,8 +8,10 @@ class Railtie < Rails::Engine
8
ActiveSupport.on_load(:action_controller) do
9
include ::SecureHeaders
10
11
- conflicting_headers.each do |header|
12
- Rails.application.config.action_dispatch.default_headers.delete(header)
+ unless Rails.application.config.action_dispatch.default_headers.nil?
+ conflicting_headers.each do |header|
13
+ Rails.application.config.action_dispatch.default_headers.delete(header)
14
+ end
15
end
16
17
0 commit comments