Module: SecureHeaders::Configuration
- Defined in:
- lib/secure_headers.rb
Class Attribute Summary collapse
-
.csp ⇒ Object
Returns the value of attribute csp.
-
.hsts ⇒ Object
Returns the value of attribute hsts.
-
.x_content_type_options ⇒ Object
Returns the value of attribute x_content_type_options.
-
.x_frame_options ⇒ Object
Returns the value of attribute x_frame_options.
-
.x_xss_protection ⇒ Object
Returns the value of attribute x_xss_protection.
Class Method Summary collapse
Class Attribute Details
.csp ⇒ Object
Returns the value of attribute csp.
4 5 6 |
# File 'lib/secure_headers.rb', line 4 def csp @csp end |
.hsts ⇒ Object
Returns the value of attribute hsts.
4 5 6 |
# File 'lib/secure_headers.rb', line 4 def hsts @hsts end |
.x_content_type_options ⇒ Object
Returns the value of attribute x_content_type_options.
4 5 6 |
# File 'lib/secure_headers.rb', line 4 def @x_content_type_options end |
.x_frame_options ⇒ Object
Returns the value of attribute x_frame_options.
4 5 6 |
# File 'lib/secure_headers.rb', line 4 def @x_frame_options end |
.x_xss_protection ⇒ Object
Returns the value of attribute x_xss_protection.
4 5 6 |
# File 'lib/secure_headers.rb', line 4 def x_xss_protection @x_xss_protection end |
Class Method Details
.configure(&block) ⇒ Object
7 8 9 |
# File 'lib/secure_headers.rb', line 7 def configure &block instance_eval &block end |