File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -138,13 +138,15 @@ module SecureHeaders
138138 } . freeze
139139 end
140140 non_default_source_additions = CSP ::NON_DEFAULT_SOURCES . each_with_object ( { } ) do |directive , hash |
141- hash [ directive ] = "http://example.org"
141+ hash [ directive ] = %w( "http://example.org )
142142 end
143143 combined_config = CSP . combine_policies ( Configuration . get . csp , non_default_source_additions )
144144
145145 CSP ::NON_DEFAULT_SOURCES . each do |directive |
146- expect ( combined_config [ directive ] ) . to eq ( "http://example.org" )
146+ expect ( combined_config [ directive ] ) . to eq ( %w( "http://example.org ) )
147147 end
148+
149+ ContentSecurityPolicy . new ( combined_config , USER_AGENTS [ :firefox ] ) . value
148150 end
149151
150152 it "overrides the report_only flag" do
You can’t perform that action at this time.
0 commit comments