Skip to content

Commit

Permalink
Merge pull request #70 from c0smosaur/dev
Browse files Browse the repository at this point in the history
[FIX] CORS 업데이트
  • Loading branch information
c0smosaur authored Jun 5, 2024
2 parents c8a9780 + a008983 commit 0bbf4fc
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 0bbf4fc

Please sign in to comment.