Loosen cookie name/value validation#210
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #210 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 1 1
Lines 160 159 -1
Branches 69 69
=========================================
- Hits 160 159 -1 ☔ View full report in Codecov by Sentry. 🚨 Try these New Features:
|
|
A couple of questions about this:
|
No, the breaking changes can be viewed here: https://github.com/jshttp/cookie/releases/tag/v1.0.0 Assuming you are only referring to this PR and pre-0.7 releases, still no. The regex is stricter than what was previously causing a security issue. However it’s fairly unlikely you’d have any characters that cause an error in either release as the values are automatically encoded and decoded.
Cookies could contain |
Closes #191. All keys and values are supported in Safari. Although older or other browsers may not support some of these characters, I don't think we should be restricting it unless it's a security issue.