module CookieJar::CookieValidation
Public Class Methods
domains_match(tested_domain, base_domain)
click to toggle source
Re-opening the CookieValidation
module to rewrite the domains_match
method to skip the validation of domains. Open issue at github.com/restforce/restforce/issues/120
# File lib/core_extensions/cookiejar/cookie_validation.rb, line 10 def self.domains_match(tested_domain, base_domain) return true if tested_domain[-15..].eql?('.salesforce.com') # original implementation base = effective_host base_domain search_domains = compute_search_domains_for_host base search_domains.find do |domain| domain == tested_domain end end