-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: same site cookie context and duplicate cookies (#23438)
* test: refactor and add tests in the cors package * fix: add areUrlsSameSite method to cookies package and fix sameSiteContext calculation method and add tests * fix: always use Set-Cookie optimistically whether or not we keep track of the cookie or not in the server side cookie jar * chore: add failing unit tests for postpending cookies * chore: add tough cookie integration tests to verify we append cookies appropriately to request header Cookie * fix: do not duplicate cookies in request if existing in the cookie jar. Add additional tests to verify expected behavior * test: add cookie behavior tests that document current expected behavior vs what spec behavior should/will be * test: add misc tests that check for cookie order * chore: update debug logs in request to discern cookies * test: fix assertions in firefox as same-site cookies are actually set correctly * fix test incorrect assertions. cookies currently exist in primary that are same-site regardless of browser * skip SameSite=none test in firefox as we currently low insecure samesite none cookies in firefox * chore: apply suggestions from code review * chore: change expects to expect * chore: add documentation for why we need an additional HTTPS port * remove X-Set-Cookie fixmes
- Loading branch information
1 parent
1aa9793
commit 9cdb33b
Showing
12 changed files
with
2,028 additions
and
170 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1,435 changes: 1,435 additions & 0 deletions
1,435
packages/driver/cypress/e2e/e2e/origin/cookie_behavior.cy.ts
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
9cdb33b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Circle has built the
linux x64
version of the Test Runner.Learn more about this pre-release platform-specific build at https://on.cypress.io/installing-cypress#Install-pre-release-version.
Run this command to install the pre-release locally:
9cdb33b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Circle has built the
linux arm64
version of the Test Runner.Learn more about this pre-release platform-specific build at https://on.cypress.io/installing-cypress#Install-pre-release-version.
Run this command to install the pre-release locally:
9cdb33b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Circle has built the
darwin x64
version of the Test Runner.Learn more about this pre-release platform-specific build at https://on.cypress.io/installing-cypress#Install-pre-release-version.
Run this command to install the pre-release locally:
9cdb33b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Circle has built the
win32 x64
version of the Test Runner.Learn more about this pre-release platform-specific build at https://on.cypress.io/installing-cypress#Install-pre-release-version.
Run this command to install the pre-release locally:
9cdb33b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Circle has built the
darwin arm64
version of the Test Runner.Learn more about this pre-release platform-specific build at https://on.cypress.io/installing-cypress#Install-pre-release-version.
Run this command to install the pre-release locally: