Skip to content

Commit

Permalink
fix: allowedOrigins 로 변경 #459
Browse files Browse the repository at this point in the history
  • Loading branch information
leegwichan committed Jan 5, 2025
1 parent 91b6a08 commit 42af7fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/main/java/ddangkong/config/CorsConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public CorsConfig(CorsProperties corsProperties) {
@Override
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**")
.allowedOriginPatterns(corsProperties.getOrigins())
.allowedOrigins(corsProperties.getOrigins())
.allowedMethods(
HttpMethod.GET.name(), HttpMethod.POST.name(), HttpMethod.PATCH.name(), HttpMethod.DELETE.name()
)
Expand Down

0 comments on commit 42af7fa

Please sign in to comment.