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,7 +10,11 @@ public class WebConfig implements WebMvcConfigurer {
@Override
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/api/**") // 백엔드 API 요청에만 CORS 허용
.allowedOrigins("http://localhost:5173", "https://www.pirocheck.org") // 프론트 배포 URL
.allowedOrigins(
"http://localhost:5173",
"http://www.pirocheck.org",
"https://www.pirocheck.org"
) // 프론트 배포 URL
.allowedMethods("GET", "POST", "PUT", "DELETE", "OPTIONS") // 허용할 HTTP 메서드
.allowedHeaders("*")
.allowCredentials(true); // 세션 쿠키 주고받기 허용
Expand Down