Skip to content

Commit

Permalink
Merge pull request #292 from TEAM-MODDY/develop
Browse files Browse the repository at this point in the history
[fix] CORS 해결
  • Loading branch information
hellozo0 authored Nov 9, 2024
2 parents 5052771 + 1c25997 commit b17940e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/moddy/server/config/WebConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public class WebConfig implements WebMvcConfigurer {
@Override
public void addCorsMappings(final CorsRegistry registry) {
registry.addMapping("/**")
.allowedOriginPatterns("*")
.allowedOriginPatterns("http://localhost:5173", "http://localhost:8080", "https://www.moddy.kr", "https://api.moddy.kr", "https://dev.moddy.kr")
.allowedMethods(HttpMethod.GET.name(), HttpMethod.POST.name(), HttpMethod.PUT.name(), HttpMethod.DELETE.name(), HttpMethod.OPTIONS.name())
.allowedHeaders("Authorization", "Content-Type")
.allowCredentials(true)
Expand Down

0 comments on commit b17940e

Please sign in to comment.