Module: SecureHeaders::Configuration

Defined in:
lib/secure_headers.rb

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.cspObject

Returns the value of attribute csp.



4
5
6
# File 'lib/secure_headers.rb', line 4

def csp
  @csp
end

.hstsObject

Returns the value of attribute hsts.



4
5
6
# File 'lib/secure_headers.rb', line 4

def hsts
  @hsts
end

.x_content_type_optionsObject

Returns the value of attribute x_content_type_options.



4
5
6
# File 'lib/secure_headers.rb', line 4

def x_content_type_options
  @x_content_type_options
end

.x_frame_optionsObject

Returns the value of attribute x_frame_options.



4
5
6
# File 'lib/secure_headers.rb', line 4

def x_frame_options
  @x_frame_options
end

.x_xss_protectionObject

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