Commit 4f4844e2 by caoyin

添加配置,跨域登录成功时返回成功提示

parent 3ee561a1
......@@ -2,6 +2,7 @@ package com.founder.config;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.CorsRegistry;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;
......@@ -19,4 +20,12 @@ public class FilterConfig extends WebMvcConfigurerAdapter {
addPathPatterns("/**").
excludePathPatterns("/refreshCodeCache","/loginFail","/login","/toGetZczlListYth","/queryAllzTreeData","/queryUnitCode","/queryTypeCode","/queryZTreeDataByName");
}
@Override
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**")
.allowedOrigins("*")
.allowCredentials(true)
.allowedMethods("GET", "POST", "DELETE", "PUT")
.maxAge(3600);
}
}
......@@ -48,5 +48,6 @@ version=@project.version@
#28.修改回报评价判断方式 01:修改回报评价判断方式
#29.增加联络员移交指令信息功能 01:将之前联络员分派、签收的指令给改成新的联络员信息
#30.增加指令移交功能 01:将之前联络员签收的指令,移交给同单位的另外一个人负责(避免出差导致指令不能及时回报的问题)
#31.添加配置 01:跨域登录成功时返回成功提示
————————————————————@project.version@-——————————————————————————
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment