Skip to content

Commit

Permalink
[FIX] CORS 업데이트
Browse files Browse the repository at this point in the history
- 프론트 배포된 origin 추가
  • Loading branch information
c0smosaur committed Jun 5, 2024
1 parent c8a9780 commit a008983
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@ public PasswordEncoder passwordEncoder() {
@Bean
CorsConfigurationSource corsConfigurationSource() {
CorsConfiguration configuration = new CorsConfiguration();
configuration.setAllowedOriginPatterns(Arrays.asList("*"));
configuration.setAllowedOriginPatterns(Arrays.asList("*",
"https://linkup-3mw.vercel.app",
"http://localhost:3000"));
configuration.setAllowedMethods(Arrays.asList("GET", "POST", "PUT", "DELETE", "OPTIONS"));
configuration.setAllowedHeaders(Arrays.asList("*"));
configuration.setAllowCredentials(true);
Expand Down
17 changes: 0 additions & 17 deletions src/main/java/com/core/linkup/common/config/WebConfig.java

This file was deleted.

0 comments on commit a008983

Please sign in to comment.