mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-27 12:39:03 +00:00
Merge branch '3.5.x' into 4.0.x
This commit is contained in:
+8
@@ -234,6 +234,14 @@ class SessionAutoConfigurationTests {
|
||||
});
|
||||
}
|
||||
|
||||
@Test
|
||||
void cookieSerializerUsesLaxSameSitePolicyByDefault() {
|
||||
this.contextRunner.run((context) -> {
|
||||
DefaultCookieSerializer cookieSerializer = context.getBean(DefaultCookieSerializer.class);
|
||||
assertThat(cookieSerializer).hasFieldOrPropertyWithValue("sameSite", "Lax");
|
||||
});
|
||||
}
|
||||
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@EnableSpringHttpSession
|
||||
static class SessionRepositoryConfiguration {
|
||||
|
||||
Reference in New Issue
Block a user