접근 임시 전체 허용 처리

This commit is contained in:
KNKIM 2021-10-21 08:05:02 +09:00
parent 0912e1d031
commit 4d6a3604df

View File

@ -61,6 +61,8 @@ public class SpringSecurityConfig extends WebSecurityConfigurerAdapter {
@Override
protected void configure(HttpSecurity http) throws Exception {
http.authorizeRequests()
.antMatchers("/**").permitAll();
/*
.antMatchers("/login/**").permitAll()
.antMatchers("/member/*.do").permitAll()
.antMatchers("/member/*.ajax").permitAll()
@ -78,7 +80,7 @@ public class SpringSecurityConfig extends WebSecurityConfigurerAdapter {
.antMatchers("/collection/*.do").permitAll()
.antMatchers("/sample/password/getSampleEncoder.do").permitAll()
.antMatchers("/sample/*.do").permitAll()
.antMatchers("/*/*Ajax.do").permitAll()
.antMatchers("/ * / *Ajax.do").permitAll()
.antMatchers("/fileupload/**").permitAll()
.antMatchers("/board/**").permitAll()
.antMatchers("/inform/**").permitAll()
@ -97,7 +99,7 @@ public class SpringSecurityConfig extends WebSecurityConfigurerAdapter {
.permitAll()
.and().csrf()
.disable();
*/
http.logout()
.logoutSuccessUrl("/login/loginCouncil.do?logout=logout")
.invalidateHttpSession(true).deleteCookies("JSESSIONID")