Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ public class WebConfig implements WebMvcConfigurer {
@Override
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**") // 애플리케이션의 모든 API 경로에 대해 CORS 설정을 적용합니다.
.allowedOrigins("http://localhost:8080", "http://127.0.0.1:8080", "https://localhost:3000", "https://can-fly.netlify.app/") // 로컬 환경의 Swagger UI
.allowedMethods("GET", "POST", "PUT", "DELETE", "OPTIONS", "PATCH") // 허용할 HTTP 메서드를 지정합니다.
.allowedOrigins("http://localhost:8080", "http://127.0.0.1:8080", "http://localhost:3000", "http://127.0.0.1:3000", "https://can-fly.netlify.app/") // 로컬 환경의 Swagger UI
.allowedMethods("GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS") // 허용할 HTTP 메서드를 지정합니다.
.allowedHeaders("*") // 모든 HTTP 헤더를 허용합니다.
.allowCredentials(true); // 쿠키 및 인증 정보를 포함한 요청을 허용합니다.
}
Expand Down