Skip to content

Commit

Permalink
Merge pull request #219 from TEAM-SAMSION/PET-312
Browse files Browse the repository at this point in the history
PET-312 refactor : SecurityConfig cors 설정 추가
  • Loading branch information
isprogrammingfun authored Jun 7, 2024
2 parents 1765864 + 0f50c5b commit ae4c225
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package com.pawith.authpresentation.common.security;

import static org.springframework.security.config.Customizer.withDefaults;

import com.pawith.authpresentation.common.security.filter.JWTAuthenticationFilter;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
Expand All @@ -23,7 +25,7 @@ public SecurityFilterChain chain(HttpSecurity http) throws Exception {
http.authorizeHttpRequests(request ->{
request.anyRequest().permitAll();
});

http.cors(withDefaults());
http.formLogin(AbstractHttpConfigurer::disable);
http.httpBasic(AbstractHttpConfigurer::disable);
http.logout(AbstractHttpConfigurer::disable);
Expand Down

0 comments on commit ae4c225

Please sign in to comment.