KKSU
2024-03-15 b87c5549fe471167882192944db3f2d6b729476c
src/main/java/cc/mrbird/febs/common/configure/WebMvcConfigure.java
@@ -18,7 +18,10 @@
    public void addInterceptors(InterceptorRegistry registry) {
        InterceptorRegistration registration = registry.addInterceptor(new LoginInterceptor());
        registration.addPathPatterns("/api/**");
        registration.excludePathPatterns("/api/login/**");
        registration.excludePathPatterns("/api/login/register");
        registration.excludePathPatterns("/api/login/toLogin");
        registration.excludePathPatterns("/api/login/pwdForget");
        registration.excludePathPatterns("/api/login/addRegisterAppeal");
        registration.excludePathPatterns("/api/common/**");
        registration.excludePathPatterns("/api/category/**");
        registration.excludePathPatterns("/api/goods/**");
@@ -28,6 +31,10 @@
        registration.excludePathPatterns("/api/unipay/unipayCallBack");
        registration.excludePathPatterns("/api/unipay/agreeMentPayCallBack");
        registration.excludePathPatterns("/api/unipay/singlePayCallBack");
        registration.excludePathPatterns("/api/order/myScoreSet");
        registration.excludePathPatterns("/api/cj/kjRecord");
        registration.excludePathPatterns("/api/cj/kjInfo");
        registration.excludePathPatterns("/api/cj/tzInfo");
    }
    @Override
@@ -37,7 +44,6 @@
                .allowedMethods("POST", "GET", "PUT", "OPTIONS", "DELETE")//表示允许跨域请求的方法
                .maxAge(3600)//表示在3600秒内不需要再发送预校验请求
                .allowCredentials(true);//允许客户端携带验证信息,即允许携带cookie
    }
}