You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
current_domain returns "foo.com:3000" when the port is 3000 (not 80). For reference, request.domain returns "foo.com" so I think current_domain should be just the domain too. For my purposes (the domain attribute of a cookie) the port is not considered part of the domain name, and is not allowed to be included.
The request object also has request.host and request.host_with_port, so perhaps a new variable current_domain_with_port could be added if someone needs it.
The text was updated successfully, but these errors were encountered:
current_domain returns "foo.com:3000" when the port is 3000 (not 80). For reference, request.domain returns "foo.com" so I think current_domain should be just the domain too. For my purposes (the domain attribute of a cookie) the port is not considered part of the domain name, and is not allowed to be included.
The request object also has request.host and request.host_with_port, so perhaps a new variable current_domain_with_port could be added if someone needs it.
The text was updated successfully, but these errors were encountered: