spring-framework icon indicating copy to clipboard operation
spring-framework copied to clipboard

Add `SameSite` enum support to `ResponseCookie`

Open zinzoddari opened this issue 1 year ago • 0 comments

I have added the SameSite enum to ResponseCookie while ensuring that the existing string-based handling is still supported.

The reason for adding the enum is to enhance type safety. Additionally, if a value that is not provided is entered, it will default to Lax as per the specification (https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-rfc6265bis#name-the-samesite-attribute).

I would appreciate it if you could review the PR!

zinzoddari avatar Aug 25 '24 12:08 zinzoddari