Skip to content

Commit

Permalink
env: FE 배포 도메인 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
punchdrunkard committed Oct 10, 2024
1 parent 60906a2 commit a068539
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ public class CorsMvcConfig implements WebMvcConfigurer {
@Override
public void addCorsMappings(CorsRegistry corsRegistry) {
corsRegistry.addMapping("/api/v1/**")
.allowedOrigins("http://localhost:3000", "https://odiga.shop", "https://fiesta-psi.vercel.app")
.allowedOrigins("http://localhost:3000", "https://odiga.shop",
"https://fiesta-psi.vercel.app", "https://www.odiga.kr")
.allowedMethods(
GET.name(),
HEAD.name(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
configuration.setAllowedOrigins(Arrays.asList(
"http://localhost:3000",
"https://odiga.shop",
"https://fiesta-psi.vercel.app"
"https://fiesta-psi.vercel.app",
"https://www.odiga.kr"
));
configuration.setAllowedMethods(List.of("GET", "POST", "PUT", "DELETE", "PATCH", "OPTIONS"));
configuration.setAllowedHeaders(Arrays.asList("Authorization", "Cache-Control", "Content-Type"));
Expand Down

0 comments on commit a068539

Please sign in to comment.