📜  spring enable cors - Java 代码示例

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

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

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