Compare commits

..

2 Commits

Author SHA1 Message Date
luotaiqian becfabee80 Merge remote-tracking branch 'origin/dev' into dev 2026-07-08 11:55:54 +08:00
luotaiqian 1c3f7c19c6 fix bug orgId not send 2026-07-08 11:55:48 +08:00
1 changed files with 0 additions and 27 deletions

View File

@ -1,27 +0,0 @@
package org.qinan.safetyeval.start.config;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.cors.CorsConfiguration;
import org.springframework.web.cors.UrlBasedCorsConfigurationSource;
import org.springframework.web.filter.CorsFilter;
/**
*
*/
@Configuration
public class WebCorsConfig {
@Bean
public CorsFilter corsFilter() {
CorsConfiguration config = new CorsConfiguration();
config.addAllowedOriginPattern("*");
config.addAllowedHeader("*");
config.addAllowedMethod("*");
config.setAllowCredentials(true);
UrlBasedCorsConfigurationSource source = new UrlBasedCorsConfigurationSource();
source.registerCorsConfiguration("/**", config);
return new CorsFilter(source);
}
}