We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5bb2e2d commit a46e876Copy full SHA for a46e876
src/main/java/com/example/log4u/common/config/SecurityConfig.java
@@ -90,6 +90,9 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
90
CorsConfiguration configuration = new CorsConfiguration();
91
92
configuration.setAllowedOrigins(Collections.singletonList(UrlConstants.FRONT_URL));
93
+ // 프론트 도메인을 백엔드 도메인 하위로 둘 경우
94
+ configuration.setAllowedOrigins(Collections.singletonList(
95
+ "http://web.ec2-13-209-127-186.ap-northeast-2.compute.amazonaws.com:3000"));
96
configuration.setAllowedMethods(Collections.singletonList("*"));
97
configuration.setAllowCredentials(true);
98
configuration.setAllowedHeaders(Collections.singletonList("*"));
0 commit comments