module Roda::RodaPlugins::ContentSecurityPolicy::InstanceMethods

  1. lib/roda/plugins/content_security_policy.rb

Methods

Public Instance

  1. content_security_policy

Public Instance methods

content_security_policy()

If a block is given, yield the current content security policy. Returns the current content security policy.

[show source]
    # File lib/roda/plugins/content_security_policy.rb
291 def content_security_policy
292   policy = @_response.content_security_policy
293   yield policy if defined?(yield)
294   policy
295 end