Method: Hanami::Config::Actions::ContentSecurityPolicy#delete

Defined in:
lib/hanami/config/actions/content_security_policy.rb

#delete(key) ⇒ Object

Deletes a CSP key

Examples:

module MyApp
  class App < Hanami::App
    config.actions.content_security_policy.delete(:object_src)
  end
end

Parameters:

  • key (Symbol)

    the underscored name of the CPS setting

Since:

  • 2.0.0



95
96
97
# File 'lib/hanami/config/actions/content_security_policy.rb', line 95

def delete(key)
  @policy.delete(key)
end