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 86c762a commit 2068ba7Copy full SHA for 2068ba7
lib/secure_headers/configuration.rb
@@ -126,7 +126,9 @@ def deep_copy_if_hash(value)
126
# The list of attributes that must respond to a `make_header` method
127
HEADERABLE_ATTRIBUTES = (CONFIG_ATTRIBUTES - [:cookies]).freeze
128
129
- attr_accessor(*CONFIG_ATTRIBUTES_TO_HEADER_CLASSES.keys)
+ attr_writer(*(CONFIG_ATTRIBUTES_TO_HEADER_CLASSES.reject { |key| [:csp, :csp_report_only].include?(key)}.keys))
130
+
131
+ attr_reader(*(CONFIG_ATTRIBUTES_TO_HEADER_CLASSES.keys))
132
133
@script_hashes = nil
134
@style_hashes = nil
0 commit comments