aboutsummaryrefslogtreecommitdiffstats
path: root/src/cow_cookie.erl
AgeCommit message (Collapse)Author
2020-11-12Fix set-cookie empty domain attribute parsingLoïc Hoguin
We must not remove all domain attributes when we find an empty domain attribute, we must only ignore this one particular cookie-av. (RFC6265bis 5.3.3)
2020-10-20Document the same_site changesLoïc Hoguin
And explain that browsers may be more strict over TCP vs TLS.
2020-10-07Cookies: accept setting same_site to noneNiklas
Chromium and Firefox have both begun using "Lax" as the default for non-Secure cookies.
2020-03-11Add cow_cookie:cookie/1Loïc Hoguin
2020-03-06Add cow_cookie:parse_set_cookie/1Loïc Hoguin
Also do minor fixes to cow_cookie:parse_cookie/1. There is a potential incompatibility from these changes, because now a header "Cookie: foo" will be translated to a cookie with an empty name and value "foo", instead of cookie name "foo" and empty value. Also cookie names starting with $ are no longer ignored. These fixes are necessary for the cookies test suite from Web platform tests to work, and match the upcoming cookie RFC.
2019-10-10Fix cookie_opts() type in code and documentationLoïc Hoguin
It's supposed to be a map, not a proplist.
2019-10-04Add manual for cow_cookieLoïc Hoguin
2018-09-28Add support for SameSite cookiesECrownofFire
The SameSite cookie attribute has yet to appear in an official RFC, and until recently was exclusive to Chrome. However, Firefox has recently implemented it as well, so it seems prudent to support it.
2018-06-04Update copyrightsLoïc Hoguin
2018-03-05Allow cookies without a valueJonathan Perret
Some cookies are seen in the wild consisting of just a name, without even a "=" char. This allows parsing them as if they were written "foo=", that is with an empty value. Commit amended to add a few more test cases.
2017-06-08Crash cookie parsing with badarg on errorLoïc Hoguin
2015-07-21Fix handling of default values in cookie optionsKrzysztof Jurewicz
Previously, an error would be raised when explicitly passing a default value for either “http_only” or “secure” option.
2015-03-12MaintenanceLoïc Hoguin
* Update copyright years. * Update erlang.mk. * Fix triq testing.
2015-02-16Add a comment on a testLoïc Hoguin
2014-05-18Accept commas as part of cookie valuesLoïc Hoguin
Google Analytics has been observed to set cookie values containing commas. We therefore need to accept them for interoperability.
2014-02-05Update copyright years0.5.0Loïc Hoguin
2013-11-08Remove some pointless commentsLoïc Hoguin
2013-10-23Add cookie parsing and building codeLoïc Hoguin