File tree Expand file tree Collapse file tree 12 files changed +5
-17
lines changed
Expand file tree Collapse file tree 12 files changed +5
-17
lines changed Original file line number Diff line number Diff line change @@ -11,8 +11,6 @@ class ClearSiteData
1111 EXECUTION_CONTEXTS = "executionContexts" . freeze
1212 ALL_TYPES = [ CACHE , COOKIES , STORAGE , EXECUTION_CONTEXTS ]
1313
14- CONFIG_KEY = :clear_site_data
15-
1614 class << self
1715 # Public: make an Clear-Site-Data header name, value pair
1816 #
Original file line number Diff line number Diff line change @@ -112,7 +112,6 @@ def write_attribute(attr, value)
112112
113113 class ContentSecurityPolicyConfigError < StandardError ; end
114114 class ContentSecurityPolicyConfig
115- CONFIG_KEY = :csp
116115 HEADER_NAME = "Content-Security-Policy" . freeze
117116
118117 ATTRS = PolicyManagement ::ALL_DIRECTIVES + PolicyManagement ::META_CONFIGS + PolicyManagement ::NONCES
Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ class ExpectCertificateTransparencyConfigError < StandardError; end
44
55 class ExpectCertificateTransparency
66 HEADER_NAME = "Expect-CT" . freeze
7- CONFIG_KEY = :expect_certificate_transparency
87 INVALID_CONFIGURATION_ERROR = "config must be a hash." . freeze
98 INVALID_ENFORCE_VALUE_ERROR = "enforce must be a boolean" . freeze
109 REQUIRED_MAX_AGE_ERROR = "max-age is a required directive." . freeze
Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ class PublicKeyPins
55 HEADER_NAME = "Public-Key-Pins" . freeze
66 REPORT_ONLY = "Public-Key-Pins-Report-Only" . freeze
77 HASH_ALGORITHMS = [ :sha256 ] . freeze
8- CONFIG_KEY = :hpkp
98
109
1110 class << self
Original file line number Diff line number Diff line change @@ -14,7 +14,6 @@ class ReferrerPolicy
1414 origin-when-cross-origin
1515 unsafe-url
1616 )
17- CONFIG_KEY = :referrer_policy
1817
1918 class << self
2019 # Public: generate an Referrer Policy header.
Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ class StrictTransportSecurity
88 DEFAULT_VALUE = "max-age=" + HSTS_MAX_AGE
99 VALID_STS_HEADER = /\A max-age=\d +(; includeSubdomains)?(; preload)?\z /i
1010 MESSAGE = "The config value supplied for the HSTS header was invalid. Must match #{ VALID_STS_HEADER } "
11- CONFIG_KEY = :hsts
1211
1312 class << self
1413 # Public: generate an hsts header name, value pair.
Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ class XContentTypeOptionsConfigError < StandardError; end
55 class XContentTypeOptions
66 HEADER_NAME = "X-Content-Type-Options" . freeze
77 DEFAULT_VALUE = "nosniff"
8- CONFIG_KEY = :x_content_type_options
98
109 class << self
1110 # Public: generate an X-Content-Type-Options header.
Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ class XDOConfigError < StandardError; end
44 class XDownloadOptions
55 HEADER_NAME = "X-Download-Options" . freeze
66 DEFAULT_VALUE = "noopen"
7- CONFIG_KEY = :x_download_options
87
98 class << self
109 # Public: generate an X-Download-Options header.
Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ module SecureHeaders
33 class XFOConfigError < StandardError ; end
44 class XFrameOptions
55 HEADER_NAME = "X-Frame-Options" . freeze
6- CONFIG_KEY = :x_frame_options
76 SAMEORIGIN = "sameorigin"
87 DENY = "deny"
98 ALLOW_FROM = "allow-from"
Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ class XPermittedCrossDomainPolicies
55 HEADER_NAME = "X-Permitted-Cross-Domain-Policies" . freeze
66 DEFAULT_VALUE = "none"
77 VALID_POLICIES = %w( all none master-only by-content-type by-ftp-filename )
8- CONFIG_KEY = :x_permitted_cross_domain_policies
98
109 class << self
1110 # Public: generate an X-Permitted-Cross-Domain-Policies header.
You can’t perform that action at this time.
0 commit comments