File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
src/main/java/com/imjustdoom/pluginsite/config Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change 1
1
package com .imjustdoom .pluginsite .config ;
2
2
3
3
import lombok .AllArgsConstructor ;
4
+ import org .springframework .boot .autoconfigure .security .servlet .PathRequest ;
4
5
import org .springframework .context .annotation .Bean ;
5
6
import org .springframework .context .annotation .Configuration ;
6
7
import org .springframework .security .authentication .dao .DaoAuthenticationProvider ;
@@ -47,6 +48,8 @@ public void configure(HttpSecurity http) throws Exception {
47
48
.antMatchers ("/resources/create" , "/account/details" ).authenticated ()
48
49
.antMatchers ("/signup" , "/login" ).not ().authenticated ()
49
50
51
+ .requestMatchers (PathRequest .toStaticResources ().atCommonLocations ()).permitAll ()
52
+
50
53
.anyRequest ().permitAll ()
51
54
52
55
.and ()
You can’t perform that action at this time.
0 commit comments