Skip to content

Commit

Permalink
♻️ 허용 도메인 삭제, 필요없는 변수 삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
tjdals4716 committed Nov 2, 2024
1 parent 11b64fe commit e2ae65b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/com/example/moyeothon/Config/WebConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public class WebConfig implements WebMvcConfigurer {
@Override
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**")
.allowedOrigins("http://localhost:8080", "http://localhost:5173", "http://127.0.0.1:5173", "https://newteamsgoody.shop", "https://moyeothon.vercel.app")
.allowedOrigins("http://localhost:8080", "http://localhost:5173", "https://newteamsgoody.shop", "https://moyeothon.vercel.app")
.allowedMethods("GET", "POST", "PUT", "DELETE", "OPTIONS")
.allowedHeaders("*")
.allowCredentials(true)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,6 @@ public Map<String, Object> getUserInfo(String accessToken) {
// 최종적으로 카카오 로그인을 처리하는 메서드
public JWTDTO loginWithOAuth2(String code) {
try {
String redirectUri = kakaoOAuthProperties.getRedirectUri();
String accessToken = getAccessToken(code);
Map<String, Object> userInfo = getUserInfo(accessToken);

Expand Down

0 comments on commit e2ae65b

Please sign in to comment.