Skip to content

Commit

Permalink
feat: 디버깅을 위한 로깅 추가 #459
Browse files Browse the repository at this point in the history
  • Loading branch information
leegwichan committed Jan 5, 2025
1 parent 4db28cd commit 91b6a08
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion backend/src/main/java/ddangkong/config/CorsConfig.java
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
package ddangkong.config;

import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.Configuration;
import org.springframework.http.HttpMethod;
import org.springframework.web.servlet.config.annotation.CorsRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@Slf4j
@Configuration
public class CorsConfig implements WebMvcConfigurer {

private final CorsProperties corsProperties;

public CorsConfig(CorsProperties corsProperties) {
System.out.println(corsProperties.getOrigin());
log.info("CORS 허용 확인 : {}", corsProperties.getOrigin()); // TODO 제거하기
this.corsProperties = corsProperties;
}

Expand Down

0 comments on commit 91b6a08

Please sign in to comment.