Skip to content

Commit

Permalink
Fix : cors url 직접입력
Browse files Browse the repository at this point in the history
  • Loading branch information
jhdl0157 committed Oct 21, 2022
1 parent b5d9dcb commit 78656d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/example/mungtage/config/CorsConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ public class CorsConfig implements WebMvcConfigurer {
@Override
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**")
.allowedOrigins("*")
.allowedOrigins("http://localhost:3000","*")
.allowedHeaders("*")
.allowedMethods("*")
.allowedMethods("GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS")
.maxAge(3000);
}
}

0 comments on commit 78656d7

Please sign in to comment.