标签:edm ping origin field ram app xhr oid pos
跨域问题
springboot 配置类加上
1 /** 2 * 跨域支持 3 * @param registry 4 */ 5 @Override 6 public void addCorsMappings(CorsRegistry registry) { 7 registry.addMapping("/**") 8 .allowedOrigins("*") 9 .allowCredentials(true) 10 .allowedMethods("GET", "POST", "DELETE", "PUT") 11 .maxAge(3600 * 24); 12 13 }
前端跨域,保证sessionId一致。
1 xhrFields:{ 2 withCredentials:true 3 }
标签:edm ping origin field ram app xhr oid pos
原文地址:https://www.cnblogs.com/lpp-xjj/p/11417520.html