Class: Lotus::Config::Security
- Inherits:
-
Object
- Object
- Lotus::Config::Security
- Defined in:
- lib/lotus/config/security.rb
Overview
Security policies are stored here.
Constant Summary collapse
- X_FRAME_OPTIONS_HEADER =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
'X-Frame-Options'.freeze
- CONTENT_SECURITY_POLICY_HEADER =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
'Content-Security-Policy'.freeze
Instance Method Summary collapse
-
#content_security_policy(value = nil) ⇒ Object
Content-Policy-Security headers’ value.
-
#x_frame_options(value = nil) ⇒ Object
X-Frame-Options headers’ value.
Instance Method Details
#content_security_policy(value) ⇒ Object #content_security_policy ⇒ String
Content-Policy-Security headers’ value
49 50 51 52 53 54 55 |
# File 'lib/lotus/config/security.rb', line 49 def content_security_policy(value = nil) if value.nil? @content_security_policy else @content_security_policy = value end end |
#x_frame_options(value) ⇒ Object #x_frame_options ⇒ String
X-Frame-Options headers’ value
30 31 32 33 34 35 36 |
# File 'lib/lotus/config/security.rb', line 30 def (value = nil) if value.nil? @x_frame_options else @x_frame_options = value end end |