Skip to content

Commit

Permalink
fix : 5173번 cors 에러 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
cowboysj authored Nov 17, 2024
1 parent bd1bb6d commit 602e662
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/main/java/gigedi/dev/global/config/WebConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ public class WebConfig implements WebMvcConfigurer {
@Override
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**")
.allowedOriginPatterns(
"http://localhost:5173",
"https://www.figma.com/**")
.allowedOriginPatterns("http://localhost:5173", "https://www.figma.com/**")
.allowedMethods("GET", "POST", "PATCH", "DELETE")
.allowedHeaders("*")
.allowCredentials(true)
Expand Down

0 comments on commit 602e662

Please sign in to comment.