Skip to content

Commit

Permalink
Merge pull request #32 from dbwp031/feature/#31-cors
Browse files Browse the repository at this point in the history
#31 fix: cors 설정 제거
  • Loading branch information
dbwp031 authored Sep 26, 2023
2 parents 30ad979 + 1330ec7 commit f729699
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/main/java/com/example/ourworldcup/config/WebConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@

@Configuration
public class WebConfig implements WebMvcConfigurer {
@Override
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**")
.allowedOrigins("http://localhost:8080",
"https://kauth.kakao.com",
"https://accounts.kakao.com")
.allowedMethods("*")
.allowedHeaders("*")
.allowCredentials(true)
.maxAge(3600);
}
// @Override
// public void addCorsMappings(CorsRegistry registry) {
// registry.addMapping("/**")
// .allowedOrigins("http://localhost:8080",
// "https://kauth.kakao.com",
// "https://accounts.kakao.com")
// .allowedMethods("*")
// .allowedHeaders("*")
// .allowCredentials(true)
// .maxAge(3600);
// }
}

0 comments on commit f729699

Please sign in to comment.