Skip to content

Commit 42d307b

Browse files
committed
[refactor] 개발환경에서도 리다이렉트 url이 빈값이면 default 값을 주입하도록 수정
1 parent 6a48f6f commit 42d307b

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/main/java/konkuk/thip/config/properties/WebDomainProperties.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,12 @@ public class WebDomainProperties {
2020
private String profile;
2121

2222
public boolean isAllowed(String target) {
23-
if(!profile.equals("prod")) {
23+
if (target == null || target.isBlank()) {
24+
return false;
25+
}
26+
27+
// 운영환경이 아닐 경우: target이 비어있지 않다면 전부 허용
28+
if (!"prod".equals(profile)) {
2429
return true;
2530
}
2631

0 commit comments

Comments
 (0)