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 fb07247 commit 00ce0c1Copy full SHA for 00ce0c1
spec/lib/secure_headers_spec.rb
@@ -113,6 +113,9 @@ module SecureHeaders
113
}
114
end
115
116
+ # before an override occurs, the env is empty
117
+ expect(request.env[SECURE_HEADERS_CONFIG]).to be_nil
118
+
119
SecureHeaders.append_content_security_policy_directives(request, script_src: %w(anothercdn.com))
120
new_config = SecureHeaders.config_for(request)
121
expect(new_config).to_not be(Configuration.get)
0 commit comments