Skip to content

Commit

Permalink
Feat: cors 도메인 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
HiSeungmin committed Jan 24, 2025
1 parent 6a412e0 commit 450f53b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ PasswordEncoder passwordEncoder() {
public CorsConfigurationSource corsConfigurationSource() {
CorsConfiguration configuration = new CorsConfiguration();

configuration.setAllowedOrigins(Arrays.asList("https://kernel-dev-lens.vercel.app", "http://localhost:3000","https://www.devlens.work","https://devlens.work"));
configuration.setAllowedOrigins(Arrays.asList("https://kernel-dev-lens.vercel.app", "http://localhost:3000","https://www.devlens.work","https://devlens.work","https://api.devlens.work"));
configuration.setAllowedMethods(Arrays.asList("GET", "POST", "PUT", "DELETE", "PATCH"));
configuration.setAllowedHeaders(Arrays.asList("Authorization", "Content-Type"));
configuration.setAllowCredentials(true); // 자격 증명 허용
Expand Down

0 comments on commit 450f53b

Please sign in to comment.