
springboot security 项目出现 in a frame because it set 'X-Frame-Options' to 'deny' springboot security 项目通过链接打开一个新的页面时,出现 in a frame because it set 'X-Frame-Options' to 'deny' 错误,如下图所示 //防止iframe @Configuration @EnableWebSecurity public class WebSecurityConfig extends WebSecurityConfigurerAdapter { @Override protected void configure(HttpSecurity http) throws Exception {