Skip to content

Commit

Permalink
Merge pull request #63 from INFP-Study/feature/cors
Browse files Browse the repository at this point in the history
[FEATURE] E4-S1 로그인 API - websecurityconfig 수정 #28
  • Loading branch information
choisungwook authored Oct 26, 2021
2 parents a57c50a + 726db89 commit 4f1e8c8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ protected void configure(HttpSecurity http) throws Exception {
http.csrf().disable();
http
.authorizeRequests()
.antMatchers("/user/signup").authenticated()
.antMatchers("/user/signup").permitAll()
.and()
.formLogin()
.usernameParameter("email")
Expand All @@ -81,7 +81,7 @@ public void onAuthenticationSuccess(HttpServletRequest request, HttpServletRespo
@Bean
public CorsConfigurationSource corsConfigurationSource() {
CorsConfiguration corsConfiguration = new CorsConfiguration();
corsConfiguration.addAllowedOrigin("*");
corsConfiguration.addAllowedOriginPattern("*");
corsConfiguration.addAllowedHeader("*");
corsConfiguration.addAllowedMethod("*");
corsConfiguration.addExposedHeader("JSESSIONID");
Expand Down

0 comments on commit 4f1e8c8

Please sign in to comment.