Sha256: 3f702bc92189b56b550b3421b9da70e0be7bdbbb0b2f4371756505e4deeab54e
Contents?: true
Size: 934 Bytes
Versions: 8
Compression:
Stored size: 934 Bytes
Contents
# Original source code at # https://github.com/dwaite/cookiejar/blob/master/lib/cookiejar/cookie_validation.rb # Re-opening the CookieValidation module to rewrite the domains_match method to # skip the validation of domains. Open issue at # https://github.com/restforce/restforce/issues/120 module CoreExtensions module CookieJar module CookieValidation def self.extended(base) base.class_eval do 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 end end end end end CookieJar::CookieValidation.extend(CoreExtensions::CookieJar::CookieValidation)
Version data entries
8 entries across 8 versions & 1 rubygems