Skip to content

Commit

Permalink
Merge pull request #83 from depromeet/feature/#80
Browse files Browse the repository at this point in the history
Feature/#80
  • Loading branch information
sejoon00 authored Aug 26, 2024
2 parents c53aad2 + 345e526 commit 49ea818
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public void addCorsMappings(CorsRegistry registry) {

registry.addMapping("/**")
.allowedOrigins("http://114.70.23.79:8080", "http://localhost:8080", "http://52.65.6.74:8080",
"http://localhost:3000", "https://www.bbogak.com/", "https://dev.bbogak.com/")
"http://localhost:3000", "https://www.bbogak.com", "https://dev.bbogak.com")
.allowedMethods("GET", "POST", "PUT", "DELETE", "OPTIONS")
.allowedHeaders("*")
.allowCredentials(true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ public CorsConfigurationSource corsConfigurationSource() {
CorsConfiguration configuration = new CorsConfiguration();
configuration.setAllowedOrigins(
List.of("http://114.70.23.79:8080", "http://localhost:8080", "http://52.65.6.74:8080",
"http://localhost:3000", "http://118.67.129.12", "https://bbogak.com", "https://www.bbogak.com/",
"https://dev.bbogak.com/"));
"http://localhost:3000", "http://118.67.129.12", "https://bbogak.com", "https://www.bbogak.com",
"https://dev.bbogak.com"));
configuration.addAllowedMethod("*");
configuration.setAllowedHeaders(List.of("*")); // 허용할 헤더
configuration.setAllowCredentials(true);
Expand Down

0 comments on commit 49ea818

Please sign in to comment.