Sha256: b0a91b61030a6db77e656a7e97537f3b3f19bb334372683012d71672174d054b

Contents?: true

Size: 500 Bytes

Versions: 5

Compression:

Stored size: 500 Bytes

Contents

::SecureHeaders::Configuration.configure do |config|
  config.hsts = { :max_age => 10.years.to_i.to_s, :include_subdomains => false }
  config.x_frame_options = 'SAMEORIGIN'
  config.x_content_type_options = "nosniff"
  config.x_xss_protection = {:value => 1, :mode => 'block'}
  csp = {
    :default_src => "self",
    :disable_chrome_extension => true,
    :disable_fill_missing => true,
    :report_uri => 'somewhere',
    :enforce => false # false means warnings only
  }

  config.csp = csp
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
secure_headers-1.2.0 fixtures/rails_3_2_12/config/initializers/secure_headers.rb
secure_headers-1.1.1 fixtures/rails_3_2_12/config/initializers/secure_headers.rb
secure_headers-1.1.0 fixtures/rails_3_2_12/config/initializers/secure_headers.rb
secure_headers-1.0.0 fixtures/rails_3_2_12/config/initializers/secure_headers.rb
secure_headers-0.5.0 fixtures/rails_3_2_12/config/initializers/secure_headers.rb