Skip to content

fix(network): send secure cookies over http to loopback addresses - #43116

Closed
Lazizbek Ergashev (lazerg) wants to merge 1 commit into
microsoft:mainfrom
lazerg:fix-43115
Closed

Lazizbek Ergashev (lazerg) wants to merge 1 commit into
microsoft:mainfrom
lazerg:fix-43115

Conversation

@lazerg

Copy link
Copy Markdown
Contributor

Summary

  • isLocalHostname() only matched localhost and *.localhost, so APIRequestContext and browserContext.cookies(urls) dropped Secure cookies on http://127.0.0.1 and http://[::1].
  • Chromium and Firefox store and send these cookies on loopback addresses, same as on localhost. Match 127.0.0.0/8 and [::1] too.

Fixes #43115

alok-108

This comment was marked as off-topic.

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.

[Bug]: Secure cookies are dropped over http for 127.0.0.1 and loopback addresses

3 participants