KKSU
2024-09-10 f52cfc92db48d9a215d7f728ce4000de1cdd6ae2
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,11 @@
        registration.excludePathPatterns("/api/unipay/unipayCallBack");
        registration.excludePathPatterns("/api/unipay/agreeMentPayCallBack");
        registration.excludePathPatterns("/api/unipay/singlePayCallBack");
        registration.excludePathPatterns("/api/order/myScoreSet");
        registration.excludePathPatterns("/api/login/createAccount");
        registration.excludePathPatterns("/api/login/createKey");
        registration.excludePathPatterns("/api/login/memberSpeak");
//        registration.excludePathPatterns("/api/member/teamFcmList");
    }
    @Override
@@ -37,7 +45,6 @@
                .allowedMethods("POST", "GET", "PUT", "OPTIONS", "DELETE")//表示允许跨域请求的方法
                .maxAge(3600)//表示在3600秒内不需要再发送预校验请求
                .allowCredentials(true);//允许客户端携带验证信息,即允许携带cookie
    }
}