Skip to content

Commit

Permalink
fix : fix webconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
cowboysj committed Nov 28, 2024
1 parent fc06e4c commit 853ad94
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/java/gigedi/dev/global/config/WebConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ public class WebConfig implements WebMvcConfigurer {
@Override
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**")
.allowedOriginPatterns("http://localhost:5173", "https://www.figma.com/**", "https://shoot-manage.com/**")
.allowedOriginPatterns(
"http://localhost:5173",
"https://www.figma.com/**",
"https://shoot-manage.com/**")
.allowedMethods("GET", "POST", "PATCH", "DELETE")
.allowedHeaders("*")
.allowCredentials(true)
Expand Down

0 comments on commit 853ad94

Please sign in to comment.