Module: Cuba::Safe
- Defined in:
- lib/cuba/safe.rb,
lib/cuba/safe/csrf.rb,
lib/cuba/safe/secure_headers.rb
Overview
Cuba::Safe
This plugin contains security related features for Cuba applications. It takes ideas from secureheaders.
Usage
require "cuba"
require "cuba/safe"
Cuba.plugin(Cuba::Safe)
Defined Under Namespace
Modules: CSRF, SecureHeaders
Class Method Summary collapse
Class Method Details
.setup(app) ⇒ Object
18 19 20 21 |
# File 'lib/cuba/safe.rb', line 18 def self.setup(app) app.plugin(Safe::SecureHeaders) app.plugin(Safe::CSRF) end |