Skip to content

Commit

Permalink
设置后端允许IFrame注入
Browse files Browse the repository at this point in the history
  • Loading branch information
lsgwr committed Nov 28, 2019
1 parent 1f68b28 commit 8dfc974
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ protected void configure(HttpSecurity http) throws Exception {
.antMatchers("/actuator/**").permitAll()
// 其他所有请求都需要身份验证
.anyRequest().authenticated();
// 允许iframe嵌套
http.headers().frameOptions().disable();
// 退出登录处理器
http.logout().logoutSuccessHandler(new HttpStatusReturningLogoutSuccessHandler());
// token验证过滤器
Expand Down

0 comments on commit 8dfc974

Please sign in to comment.