You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/secure_headers/headers/content_security_policy.rb
+1-3Lines changed: 1 addition & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -53,16 +53,14 @@ def value
53
53
defbuild_value
54
54
directives.mapdo |directive_name|
55
55
caseDIRECTIVE_VALUE_TYPES[directive_name]
56
-
when:source_list,:require_sri_for_list# require_sri is a simple set of strings that don't need to deal with symbol casing
56
+
when:source_list,:require_sri_for_list,:require_trusted_types_for_list# require_sri is a simple set of strings that don't need to deal with symbol casing
raiseContentSecurityPolicyConfigError.new(%(require-sri for must be a subset of #{REQUIRE_TRUSTED_TYPES_FOR_VALUES.to_a} but was #{require_trusted_types_for_expression}))
401
+
raiseContentSecurityPolicyConfigError.new(%(require-trusted-types-for for must be a subset of #{REQUIRE_TRUSTED_TYPES_FOR_VALUES.to_a} but was #{require_trusted_types_for_expression}))
0 commit comments