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 071c580 commit f40910cCopy full SHA for f40910c
spec/lib/secure_headers/headers/content_security_policy_spec.rb
@@ -196,6 +196,11 @@ module SecureHeaders
196
expect(csp.value).to eq("trusted-types blahblahpolicy")
197
end
198
199
+ it "supports trusted-types directive with 'none'" do
200
+ csp = ContentSecurityPolicy.new({trusted_types: %w(none)})
201
+ expect(csp.value).to eq("trusted-types none")
202
+ end
203
+
204
it "allows duplicate policy names in trusted-types directive" do
205
csp = ContentSecurityPolicy.new({trusted_types: %w(blahblahpolicy 'allow-duplicates')})
206
expect(csp.value).to eq("trusted-types blahblahpolicy 'allow-duplicates'")
0 commit comments