lib/secure_headers/headers/clear_site_data.rb
# Public: make an Clear-Site-Data header name, value pair
#
# Returns nil if not configured, returns header name and value if configured.
make an Clear-Site-Data header name, value pair
Returns nil if not configured, returns header name and value if configured.
make an Clear - Site - Data header name value pair Returns nil if not configured returns header name and value if configured .
def validate_config!(config)
        case config
        when nil, OPT_OUT, true
        when Array
          unless config.all? { |t| t.is_a?(String) }
            raise ClearSiteDataConfigError.new("types must be Strings")
          end
        else
          raise ClearSiteDataConfigError.new("config must be an Array of Strings or `true`")
        end
      end
def validate_config! ( config ) case config when nil , OPT_OUT , true when Array unless config . all? { | t | t . is_a? ( String ) } raise ClearSiteDataConfigError . new ( "types must be Strings" ) end else raise ClearSiteDataConfigError . new ( "config must be an Array of Strings or `true`" ) end end
Public: make an Clear-Site-Data header name, value pair
Returns nil if not configured, returns header name and value if configured.
Public : make an Clear - Site - Data header name value pair Returns nil if not configured returns header name and value if configured .
# valid
config