-
-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Why is the leading full stop in domain omitted? #73
Comments
According to RFC 6265 section 4.1.2.3, a leading dot is not permitted. The previous RFC on cookies, RFC 2109, however, mandated that a domain start with a dot if it was explicitly specified. As a result, older browsers, namely IE, accept and send along a leading dot. Newer browsers do not. The leading dot is illegal. The parser allows the leading dot for compatibility but strips it for conformance with the current RFC. Note, however, that the leading dot is not stripped on outgoing cookies when explicitly set via |
@SergioBenitez Thanks for the clarification. Can't believe that it's an RFC written 6 years ago however I've never heard of it. I'd close this issue. |
What is the purpose of this? I believe that the leading full stop is not meaningless as cookies for
.example.com
are visible tosub.example.com
whereas the ones forexample.com
are not.The text was updated successfully, but these errors were encountered: