📜  如何在 Spring Boot 中禁用 Cors - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:38.153000             🧑  作者: Mango

代码示例2
@EnableWebSecurity
public class WebSecurityConfig extends WebSecurityConfigurerAdapter {

    @Override
    protected void configure(HttpSecurity http) throws Exception {
        http.cors().and()...
    }
}