We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6a48f6f commit 42d307bCopy full SHA for 42d307b
1 file changed
src/main/java/konkuk/thip/config/properties/WebDomainProperties.java
@@ -20,7 +20,12 @@ public class WebDomainProperties {
20
private String profile;
21
22
public boolean isAllowed(String target) {
23
- if(!profile.equals("prod")) {
+ if (target == null || target.isBlank()) {
24
+ return false;
25
+ }
26
+
27
+ // 운영환경이 아닐 경우: target이 비어있지 않다면 전부 허용
28
+ if (!"prod".equals(profile)) {
29
return true;
30
}
31
0 commit comments