Skip to content

Commit

Permalink
fix: append cors conf
Browse files Browse the repository at this point in the history
  • Loading branch information
aiaiaiai1 committed Jun 27, 2024
1 parent 585ca05 commit c351e9a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/gymmi/global/WebMvcConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ public class WebMvcConfig implements WebMvcConfigurer {
public void addCorsMappings(final CorsRegistry registry) {
registry.addMapping("/**")
.allowedMethods(ALLOWED_METHOD_NAMES.split(","))
.allowedOrigins("*");
.allowedOriginPatterns("*")
.allowCredentials(true);
}

@Override
Expand Down

0 comments on commit c351e9a

Please sign in to comment.