Skip to content
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

fix: should not set sameSite and CHIPS when secure = false #45

Merged
merged 4 commits into from Dec 28, 2023

Conversation

fengmk2
Copy link
Member

@fengmk2 fengmk2 commented Dec 28, 2023

No description provided.

Copy link

codecov bot commented Dec 28, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (b81f041) 100.00% compared to head (6244b28) 100.00%.
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##            master       #45   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            4         4           
  Lines          234       237    +3     
  Branches        61        61           
=========================================
+ Hits           234       237    +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

lib/cookies.js Show resolved Hide resolved
}
}
if (opts.partitioned) {
if (!this.secure || (userAgent && !this.isPartitionedCompatible(userAgent))) {
// allow to set partitioned: secure=true and sameSite=none and chrome >= 118
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

需要满足3个条件才能设置 partitioned

@fengmk2 fengmk2 merged commit 33395bf into master Dec 28, 2023
11 checks passed
@fengmk2 fengmk2 deleted the not-set-on-secure-false branch December 28, 2023 17:26
fengmk2 pushed a commit that referenced this pull request Dec 28, 2023
[skip ci]

## [2.8.3](v2.8.2...v2.8.3) (2023-12-28)

### Bug Fixes

* should not set sameSite and CHIPS when secure = false ([#45](#45)) ([33395bf](33395bf))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant