File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
articles/hilla/lit/guides/security Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ public class SecurityConfig extends VaadinWebSecurity {
5050 }
5151
5252 @Override
53- protected void configure(HttpSecurity http) {
53+ protected void configure(HttpSecurity http) throws Exception {
5454 // Set default security policy that permits Hilla internal requests and
5555 // denies all other
5656 http.authorizeHttpRequests(registry -> registry.requestMatchers(
@@ -85,7 +85,7 @@ Public views need to be added to the configuration before calling [methodname]`s
8585[source,java]
8686----
8787 @Override
88- protected void configure(HttpSecurity http) {
88+ protected void configure(HttpSecurity http) throws Exception {
8989 http.authorizeHttpRequests(registry -> {
9090 registry.requestMatchers(new AntPathRequestMatcher("/public-view")).permitAll(); // custom matcher
9191 });
You can’t perform that action at this time.
0 commit comments