Browse Source

Update Kotlin hello-security to Relative Redirects

Josh Cummings 1 month ago
parent
commit
b2b7199aa9

+ 1 - 1
servlet/spring-boot/kotlin/hello-security/src/test/kotlin/org/springframework/security/samples/KotlinApplicationTests.kt

@@ -48,7 +48,7 @@ class KotlinApplicationTests(@Autowired private val mockMvc: MockMvc) {
                 .andExpect {
                     status { is3xxRedirection() }
                     header {
-                        redirectedUrlPattern("**/log-in")
+                        redirectedUrl("/log-in")
                     }
                 }
     }