Skip to content

Commit

Permalink
feat: 개발서버 https 지원을 위한 CORS 설정 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
rheeri committed Oct 25, 2024
1 parent d6c89ca commit 69b205e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/foru/freebe/config/CorsConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public CorsConfigurationSource corsConfigurationSource() {
CorsConfiguration configuration = new CorsConfiguration();
configuration.setAllowCredentials(true);
configuration.setAllowedOrigins(
Arrays.asList("https://www.freebe.co.kr", "http://localhost:3000", "http://15.164.160.132:3000"));
Arrays.asList("https://www.freebe.co.kr", "https://www.freebe.n-e.kr", "http://localhost:3000"));
configuration.setAllowedMethods(Arrays.asList("GET", "POST", "PUT", "DELETE", "OPTIONS"));
configuration.setExposedHeaders(Arrays.asList("accessToken", "refreshToken"));
configuration.setAllowedHeaders(Arrays.asList("Content-Type", "Authorization", "refreshToken"));
Expand Down

0 comments on commit 69b205e

Please sign in to comment.