End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
CGI::Cookie#domain=
domain=(str)
lib/cgi/cookie.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.0.5/lib/cgi/cookie.rb, line 126
def domain=(str)
if str and ((str = str.b).bytesize > 255 or !DOMAIN_VALUE_RE.match?(str))
raise ArgumentError, "invalid domain: #{str.dump}"
end
@domain = str
end
Set domain for which this cookie applies