feat(N/A): 配置dev环境的cors配置
This commit is contained in:
@@ -4,13 +4,11 @@ import cn.dev33.satoken.interceptor.SaInterceptor;
|
||||
import cn.dev33.satoken.stp.StpUtil;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.context.annotation.Profile;
|
||||
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
|
||||
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
|
||||
|
||||
@Configuration
|
||||
@Slf4j
|
||||
@Profile("prod")
|
||||
public class SaTokenConfigure implements WebMvcConfigurer {
|
||||
|
||||
// 注册拦截器
|
||||
|
||||
@@ -24,7 +24,6 @@ public class SaTokenDevFilterConfig {
|
||||
}
|
||||
})
|
||||
.setAuth(obj -> {
|
||||
StpUtil.checkLogin();
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user