Skip to content

Commit

Permalink
Disable iframe security
Browse files Browse the repository at this point in the history
  • Loading branch information
datazuul committed Jun 4, 2018
1 parent e696899 commit ff64351
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ public class SpringConfigSecurityDemo extends WebSecurityConfigurerAdapter {
@Override
protected void configure(HttpSecurity http) throws Exception {
http
.headers().frameOptions().disable() // to make universalviewer work
.and()
.authorizeRequests()
.requestMatchers(EndpointRequest.to("info", "health")).permitAll()
.requestMatchers(EndpointRequest.toAnyEndpoint()).hasRole("ACTUATOR")
Expand Down

0 comments on commit ff64351

Please sign in to comment.