diff --git a/gateway/src/main/java/com/oing/config/SpringWebConfig.java b/gateway/src/main/java/com/oing/config/SpringWebConfig.java index d272e4fb..114baaa1 100644 --- a/gateway/src/main/java/com/oing/config/SpringWebConfig.java +++ b/gateway/src/main/java/com/oing/config/SpringWebConfig.java @@ -58,7 +58,7 @@ public void addArgumentResolvers(List resolvers) @Override public void addCorsMappings(CorsRegistry registry) { registry.addMapping("/**") - .allowedOrigins("https://bibbi.app", "https://no5ing.kr", "https://dev.no5ing.kr") + .allowedOrigins("https://bibbi.app", "https://no5ing.kr", "https://dev.api.no5ing.kr", "https://link.no5ing.kr", "https://link.bibbi.app") .allowedMethods("GET", "POST", "PUT", "DELETE") .allowedHeaders("Authorization", "Content-Type") .allowCredentials(true) diff --git a/gateway/src/main/java/com/oing/controller/FamilyInviteViewController.java b/gateway/src/main/java/com/oing/controller/FamilyInviteViewController.java index c4fb4ee8..954558f5 100644 --- a/gateway/src/main/java/com/oing/controller/FamilyInviteViewController.java +++ b/gateway/src/main/java/com/oing/controller/FamilyInviteViewController.java @@ -23,13 +23,12 @@ public class FamilyInviteViewController implements FamilyInviteViewApi { private final FamilyBridge familyBridge; private final PostBridge postBridge; private final MemberController memberController; - private final MeApi meApi; @Override public FamilyInviteDeepLinkResponse getFamilyInviteLinkDetails(String linkId, String loginMemberId) { boolean isRequesterJoinedFamily = true; MemberResponse me = memberController.getMemberNullable(loginMemberId); - if (me.familyId() == null) { + if (me.familyId() == null || me.memberId() == null) { isRequesterJoinedFamily = false; }