Skip to content

Commit

Permalink
refactor: CORS 수정 (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
pdohyung committed Apr 14, 2024
1 parent 7d43875 commit 94743bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/jisungin/config/WebConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class WebConfig implements WebMvcConfigurer {
@Override
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**")
.allowedOrigins("*")
.allowedOrigins("http://localhost:3000", "https://api.jisungin.co.kr")
.allowedMethods(
HttpMethod.GET.name(),
HttpMethod.POST.name(),
Expand Down

0 comments on commit 94743bf

Please sign in to comment.