Skip to content

Commit

Permalink
fix X-Frame-Options = sameorigin
Browse files Browse the repository at this point in the history
  • Loading branch information
kochetkov-ma committed Sep 23, 2020
1 parent 05744d3 commit fd5047e
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@ protected void configure(AuthenticationManagerBuilder auth) throws Exception {

@Override
protected void configure(HttpSecurity http) throws Exception {
var spec = http.csrf().disable()
var spec = http
.headers().frameOptions().sameOrigin()
.and()
.csrf().disable()
.requestCache().requestCache(new CustomRequestCache());
if (cfg.basicAuthEnable()) {
spec.and().authorizeRequests()
Expand Down

0 comments on commit fd5047e

Please sign in to comment.