|
@@ -16,6 +16,7 @@ import org.springframework.web.filter.CorsFilter;
|
|
|
public class CorsConfig {
|
|
|
private CorsConfiguration buildConfig() {
|
|
|
CorsConfiguration corsConfiguration = new CorsConfiguration();
|
|
|
+ corsConfiguration.setAllowCredentials(true);
|
|
|
corsConfiguration.addAllowedOrigin("*"); //允许任何域名
|
|
|
corsConfiguration.addAllowedHeader("*"); //允许任何头
|
|
|
corsConfiguration.addAllowedMethod("*"); //允许任何方法
|