Skip to content

Commit

Permalink
♻️ cors 프론트 허용 도메인 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
tjdals4716 committed Nov 2, 2024
1 parent 5c56f9c commit 0432946
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/main/java/com/example/moyeothon/Config/WebConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,7 @@ public class WebConfig implements WebMvcConfigurer {
@Override
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**")
.allowedOrigins("http://localhost:8080",
"http://127.0.0.1:8080",
"http://127.0.0.1:3000",
"http://localhost:5173",
"http://127.0.0.1:5173",
"https://newteamsgoody.shop",
"https://moyeothon.vercel.app")
.allowedOrigins("http://localhost:8080", "http://localhost:5173", "http://127.0.0.1:5173", "https://newteamsgoody.shop", "https://moyeothon.vercel.app")
.allowedMethods("GET", "POST", "PUT", "DELETE", "OPTIONS")
.allowedHeaders("*")
.allowCredentials(true)
Expand Down

0 comments on commit 0432946

Please sign in to comment.