Commit aaf94fc46f2642128c77191e2978114ec4ad73f1
1 parent
4d5a986fb5
Exists in
master
and in
6 other branches
拦截
Showing 1 changed file with 2 additions and 2 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/inteceptor/TokenValidateInteceptor.java
View file @
aaf94fc
| ... | ... | @@ -51,11 +51,11 @@ |
| 51 | 51 | String url = request.getRequestURL().toString(); |
| 52 | 52 | System.out.println("referer====="+referer); |
| 53 | 53 | System.out.println("url====="+url); |
| 54 | - if (StringUtils.isNotEmpty(referer) && !referer.contains("area-xtrm.healthbaby.com.cn")) | |
| 54 | + if (StringUtils.isNotEmpty(referer) && !referer.contains("area-xtrm-api.healthbaby.com.cn")) | |
| 55 | 55 | { |
| 56 | 56 | throw new ForbiddenException(); |
| 57 | 57 | } |
| 58 | - else if (StringUtils.isEmpty(referer) && !url.contains("area-xtrm.healthbaby.com.cn")) | |
| 58 | + else if (StringUtils.isEmpty(referer) && !url.contains("area-xtrm-api.healthbaby.com.cn")) | |
| 59 | 59 | { |
| 60 | 60 | throw new ForbiddenException(); |
| 61 | 61 | } |