Skip to content

Commit

Permalink
chore: 배포환경 CORS 및 Swagger 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
GiHwan2 committed Nov 22, 2024
1 parent b1bce5a commit f735154
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/ivory/ivory/config/CorsConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ public CorsFilter corsFilter() {
CorsConfiguration config = new CorsConfiguration();
// 인증정보 허용
config.setAllowCredentials(false); // 일단 이렇게..
//config.addAllowedOrigin("http://localhost:3000"); // React 애플리케이션 URL
config.addAllowedOrigin("*");
config.addAllowedOrigin("http://localhost:3000");
config.addAllowedOrigin("https://danpoong-ivory.vercel.app/");
config.addAllowedHeader("*");
config.addAllowedMethod("*"); // 모든 HTTP 메소드 허용

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
.requestMatchers(
"/swagger-ui/**",
"/v3/api-docs/**"
).denyAll()
).permitAll()
.requestMatchers("/api/v1/auth/**","/api/v1/apply/payments/**").permitAll()
.anyRequest().authenticated()
);
Expand Down

0 comments on commit f735154

Please sign in to comment.