Skip to content

Commit 86fdd54

Browse files
committed
set httponly to true, remove public from test
1 parent 126b3b6 commit 86fdd54

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/java/com/generic/server/config/HttpConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public class HttpConfig {
1818
public SecurityFilterChain localLoginAndRedirectFilterChain(HttpSecurity http) throws Exception {
1919

2020
http.csrf(csrf -> csrf
21-
.csrfTokenRepository(CookieCsrfTokenRepository.withHttpOnlyFalse())
21+
.csrfTokenRepository(new CookieCsrfTokenRepository())
2222
.csrfTokenRequestHandler(new CsrfTokenRequestAttributeHandler())
2323
.ignoringRequestMatchers(ACTUATOR_CSRF_EXCLUDED_PATHS)
2424
);

src/test/java/com/generic/server/constants/ConstantsTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
import static org.junit.jupiter.api.Assertions.assertThrows;
99

10-
public class ConstantsTest {
10+
class ConstantsTest {
1111

1212
@Test
1313
void testConstructorThrowsUnsupportedOperationException() throws NoSuchMethodException {

0 commit comments

Comments
 (0)