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
288 def content_security_policy
289   policy = @_response.content_security_policy
290   yield policy if defined?(yield)
291   policy
292 end