Skip to content

Commit

Permalink
백엔드 cors 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
duhwan05 committed Aug 6, 2024
1 parent d4c5f7a commit 7d94769
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public CorsFilter corsFilter() {
UrlBasedCorsConfigurationSource source = new UrlBasedCorsConfigurationSource();
CorsConfiguration config = new CorsConfiguration();
config.addAllowedOriginPattern("http://localhost:8081/swagger-ui/index.html"); // 특정 origin 허용
config.addAllowedOriginPattern("https://trendy-healthy-backend.store/swagger-ui/"); // 특정 origin 허용
config.addAllowedOriginPattern("https://trendy-healthy-backend.store/swagger-ui/");
config.addAllowedOriginPattern("http://localhost:3000");
config.addAllowedOriginPattern("https://trendy-healthy.store/");
config.addAllowedMethod("*"); // 모든 HTTP 메서드 허용
Expand Down

0 comments on commit 7d94769

Please sign in to comment.