Skip to content

Commit 67c032b

Browse files
committed
HotFix: cors설정 변경
1 parent 1a424f9 commit 67c032b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

backend/src/main/java/com/together/backend/global/config/SecurityConfig.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,12 @@ public CorsConfigurationSource corsConfigurationSource() {
3737
config.setAllowCredentials(true);
3838
config.addAllowedOrigin("https://7-together.kro.kr");
3939
config.addAllowedOrigin("http://localhost:3000");
40-
config.addAllowedHeader("*");
40+
41+
config.addAllowedHeader("Origin");
42+
config.addAllowedHeader("X-Requested-With");
43+
config.addAllowedHeader("Content-Type");
44+
config.addAllowedHeader("Accept");
45+
config.addAllowedHeader("Authorization"); // 필요시
4146
config.addAllowedMethod("*");
4247
config.addExposedHeader("Set-Cookie");
4348

0 commit comments

Comments
 (0)