접근 임시 전체 허용 처리

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 @Override
protected void configure(HttpSecurity http) throws Exception { protected void configure(HttpSecurity http) throws Exception {
http.authorizeRequests() http.authorizeRequests()
.antMatchers("/**").permitAll();
/*
.antMatchers("/login/**").permitAll() .antMatchers("/login/**").permitAll()
.antMatchers("/member/*.do").permitAll() .antMatchers("/member/*.do").permitAll()
.antMatchers("/member/*.ajax").permitAll() .antMatchers("/member/*.ajax").permitAll()
@ -97,7 +99,7 @@ public class SpringSecurityConfig extends WebSecurityConfigurerAdapter {
.permitAll() .permitAll()
.and().csrf() .and().csrf()
.disable(); .disable();
*/
http.logout() http.logout()
.logoutSuccessUrl("/login/loginCouncil.do?logout=logout") .logoutSuccessUrl("/login/loginCouncil.do?logout=logout")
.invalidateHttpSession(true).deleteCookies("JSESSIONID") .invalidateHttpSession(true).deleteCookies("JSESSIONID")