Skip to content

ResponseCookie to allow leading dot in domain name again #23924

@rubasace

Description

@rubasace

ResponseCookie was changed and now applies Rfc6265Utils to validate attributes. As stated on issue #23776, we should be strict with output and lenient with input. Reality is that ReactorClientHttpResponse and JettyClientHttpResponse are using ResponseCookie to propagate cookies received. This scenario is cleary input and yet it's still failing when hitting endpoints behind Cloudflare, as they add the HttpOnly cookie with domain=.domain.com as stated here.

Regarding possible solutions, I think the builder itself could have some kind of flag to disable validation, allowing both ReactorClientHttpResponse and JettyClientHttpResponse use it when just propagating cookies from the cookie header.

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)status: backportedAn issue that has been backported to maintenance branchestype: regressionA bug that is also a regression

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions