Changeset f25e8dd in Git for src/main/java/com/wediscussmovies/project/configuration/SecurityConfig.java
- Timestamp:
- 02/05/22 22:48:19 (3 years ago)
- Branches:
- main
- Children:
- 2efe93e
- Parents:
- 5b447b0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/com/wediscussmovies/project/configuration/SecurityConfig.java
r5b447b0 rf25e8dd 5 5 import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder; 6 6 import org.springframework.security.config.annotation.web.builders.HttpSecurity; 7 import org.springframework.security.config.annotation.web.builders.WebSecurity; 7 8 import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter; 8 9 … … 15 16 } 16 17 18 @Override 19 public void configure(WebSecurity web) throws Exception { 20 web.ignoring().antMatchers("/*.jpg"); 21 web.ignoring().antMatchers("/*.png"); 22 web.ignoring().antMatchers("/*.css"); 23 web.ignoring().antMatchers("/*.js"); 24 } 17 25 18 26 @Override … … 21 29 http.csrf().disable() 22 30 .authorizeRequests() 23 .antMatchers("/movies","/ actors","/directors","/discussions","/replies","/register","/genres").permitAll()31 .antMatchers("/movies","/movies/**/","/actors","/persons/**/","/directors","/discussions","/discussions/**/","/discussions/all/**/","/replies","/register","/genres").permitAll() 24 32 .anyRequest() 25 33 .authenticated()
Note:
See TracChangeset
for help on using the changeset viewer.