Skip to content

Commit 27e7489

Browse files
committed
security config
1 parent a5281f4 commit 27e7489

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/java/com/imjustdoom/pluginsite/config/SecurityConfig.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package com.imjustdoom.pluginsite.config;
22

33
import lombok.AllArgsConstructor;
4+
import org.springframework.boot.autoconfigure.security.servlet.PathRequest;
45
import org.springframework.context.annotation.Bean;
56
import org.springframework.context.annotation.Configuration;
67
import org.springframework.security.authentication.dao.DaoAuthenticationProvider;
@@ -47,6 +48,8 @@ public void configure(HttpSecurity http) throws Exception {
4748
.antMatchers("/resources/create", "/account/details").authenticated()
4849
.antMatchers("/signup", "/login").not().authenticated()
4950

51+
.requestMatchers(PathRequest.toStaticResources().atCommonLocations()).permitAll()
52+
5053
.anyRequest().permitAll()
5154

5255
.and()

0 commit comments

Comments
 (0)