Public Class methods
new()
Unset any content security policy when reinitializing
[show source]
# File lib/roda/plugins/content_security_policy.rb 297 def initialize 298 super 299 @content_security_policy &&= nil 300 end
Public Instance methods
content_security_policy()
The current content security policy to be used for this response.
[show source]
# File lib/roda/plugins/content_security_policy.rb 303 def content_security_policy 304 @content_security_policy ||= roda_class.opts[:content_security_policy].dup 305 end