This commit is contained in:
wangkang
2017-08-07 20:11:13 +08:00
parent a26e274dd8
commit 9bc76872b0
@@ -57,7 +57,7 @@ public class RmsAuthHandlerInterceptor implements HandlerInterceptor {
//获取请求方法
String method = request.getMethod();
//如果是options请求,则直接返回true (处理跨域情况)
if (HttpMethod.OPTIONS.toString().equals(method)) {
if (HttpMethod.OPTIONS.equals(HttpMethod.resolve(method))) {
return true;
}
//获得当前环境