添加 TODO,不放行全部域名,通过配置文件配置允许访问的域名。
This commit is contained in:
parent
3b1c15335b
commit
e8274b1beb
@ -12,6 +12,7 @@ import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
|
||||
@Configuration
|
||||
public class WebCorsConfig implements WebMvcConfigurer {
|
||||
|
||||
// TODO 不放行全部,通过配置文件配置允许访问的域名
|
||||
@Override
|
||||
public void addCorsMappings(CorsRegistry registry) {
|
||||
registry.addMapping("/**")
|
||||
|
Loading…
x
Reference in New Issue
Block a user