Skip to content

Commit e44fd1a

Browse files
authored
Allow error pages as public too (thanks Matt)
1 parent 036084a commit e44fd1a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

security-config/src/main/java/com/octoperf/security/config/SecurityConfig.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@
3030
@FieldDefaults(level = PRIVATE, makeFinal = true)
3131
class SecurityConfig extends WebSecurityConfigurerAdapter {
3232
private static final RequestMatcher PUBLIC_URLS = new OrRequestMatcher(
33-
new AntPathRequestMatcher("/public/**")
33+
new AntPathRequestMatcher("/public/**"),
34+
new AntPathRequestMatcher("/error/**")
3435
);
3536
private static final RequestMatcher PROTECTED_URLS = new NegatedRequestMatcher(PUBLIC_URLS);
3637

0 commit comments

Comments
 (0)