Skip to content

Commit 17b5a9a

Browse files
authored
Fix: cors 오류 수정
1 parent b46d2b6 commit 17b5a9a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/java/umc/tosee/global/config/WebConfig.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Excepti
4343
public CorsConfigurationSource corsConfigurationSource() {
4444
CorsConfiguration config = new CorsConfiguration();
4545
config.setAllowCredentials(true);
46-
config.setAllowedOrigins(List.of("http://localhost:5173", "https://umc.gyeonseo.com","http://localhost:8080"));
46+
config.setAllowedOrigins(List.of("http://localhost:5173", "https://umc.gyeonseo.com"));
4747
config.setAllowedMethods(List.of("GET","POST","PUT","PATCH","DELETE","OPTIONS"));
4848
config.setAllowedHeaders(List.of("*"));
49-
config.setExposedHeaders(List.of("Authorization", "Set-Cookie"));
49+
config.setExposedHeaders(List.of("Set-Cookie"));
5050

5151
UrlBasedCorsConfigurationSource source = new UrlBasedCorsConfigurationSource();
5252
source.registerCorsConfiguration("/**", config);

0 commit comments

Comments
 (0)